Closed Bug 944207 Opened 6 years ago Closed 6 years ago
Reset the number of HWC layers on failures before HWC prepare
Observed that for the first frame after boot, PrepareLayerList() is successful hence number of HWC layers > 0 but it lands in "FBSurface not initialized" failure in TryHwComposition() and fall back to GPU Composition. Subsequently, in Render(), the decision to call Prepare() is based on the number of HWC layers. Hence, hwc set gets called without prepare. So, reset the number of HWC layers on any failure before prepare.
Attachment #8339669 - Flags: review?(dwilson)
Assignee: nobody → sushilchauhan
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment on attachment 8339669 [details] [diff] [review] Reset number of HWC layers on failures before HWC prepare. Looks good to me
Attachment #8339669 - Flags: review?(dwilson) → review+
Will upload HG friendly patch.
Uploading HG friendly patch.
Component: General → Widget: Gonk
Product: Firefox OS → Core
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
You need to log in before you can comment on or make changes to this bug.