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)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla24
People
(Reporter: mwu, Assigned: mwu)
References
Details
Attachments
(1 file)
4.56 KB,
patch
|
vlad
:
review+
|
Details | Diff | Splinter Review |
The emulator doesn't support HWC. This provides an alternate path so we can draw in the emulator.
Attachment #765747 -
Flags: review?(vladimir)
Assignee | ||
Comment 1•11 years ago
|
||
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+
Assignee | ||
Comment 3•11 years ago
|
||
(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.
Assignee | ||
Comment 4•11 years ago
|
||
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..
Assignee | ||
Comment 5•11 years ago
|
||
Comment 6•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/6ab7e5820bb9
https://hg.mozilla.org/mozilla-central/rev/d86e7ee8f564
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
Updated•6 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•