Closed Bug 885620 Opened 11 years ago Closed 11 years ago

Support FB fallback when HWC isn't available

Categories

(Core Graveyard :: Widget: Gonk, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla24

People

(Reporter: mwu, Assigned: mwu)

References

Details

Attachments

(1 file)

The emulator doesn't support HWC. This provides an alternate path so we can draw in the emulator.
Attachment #765747 - Flags: review?(vladimir)
Comment on attachment 765747 [details] [diff] [review] Add framebuffer drawing path Review of attachment 765747 [details] [diff] [review]: ----------------------------------------------------------------- ::: widget/gonk/libdisplay/GonkDisplayJB.cpp @@ +46,5 @@ > + if (!err) { > + mWidth = mFBDevice->width; > + mHeight = mFBDevice->height; > + xdpi = mFBDevice->xdpi; > + surfaceformat = HAL_PIXEL_FORMAT_RGBX_8888; I had to use RGBX here instead of the format reported by the framebuffer, which is RGBA8888. EGL fails to return any configurations with RGBA. I'll add a comment.
Comment on attachment 765747 [details] [diff] [review] Add framebuffer drawing path Does it hurt to open to FB device always? RGBX thing makes sense (but weird, FB device really should be reporting RGBX!), comment is good.
Attachment #765747 - Flags: review?(vladimir) → review+
(In reply to Vladimir Vukicevic [:vlad] [:vladv] from comment #2) > Comment on attachment 765747 [details] [diff] [review] > Add framebuffer drawing path > > Does it hurt to open to FB device always? RGBX thing makes sense (but > weird, FB device really should be reporting RGBX!), comment is good. Surfaceflinger actually always tries to open the FB device first in order to be more compatible with older HALs, so this actually helps in theory.
https://hg.mozilla.org/projects/birch/rev/6ab7e5820bb9 .. And I just realized I completely forgot to add the comment. Will add in a follow up..
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
Blocks: 889192
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: