Gonk widget fails to initialize the framebuffer if GL context creation fails

RESOLVED FIXED in mozilla16

Status

()

Core
Widget: Gonk
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: marshall_law, Assigned: marshall_law)

Tracking

Trunk
mozilla16
ARM
Gonk (Firefox OS)
Points:
---
Bug Flags:
in-testsuite -

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 2 obsolete attachments)

(Assignee)

Description

5 years ago
In AOSP qemu, the fallback software rendering EGL lib doesn't support GLES 2.0, which means the GL context isn't created by GLContextProviderEGL.

Currently, accelerated rendering and the framebuffer are only initialized before the attempt to create the GL context. 

The fix is to wait until _after_ attempting to create the GL context before checking whether the framebuffer needs to be initialized, and then appropriately set the |mUseAcceleratedRendering| flag..

(Note: move this to Widget: Gonk component once it's created in Bug 771591)
(Assignee)

Updated

5 years ago
See Also: → bug 771539
(Assignee)

Comment 1

5 years ago
The 2nd half of the emulator black screen issue on B2G github:
https://github.com/mozilla-b2g/B2G/issues/51
(Assignee)

Comment 2

5 years ago
Created attachment 639755 [details] [diff] [review]
Framebuffer fallback on !sGLContext
Attachment #639755 - Flags: review?(jones.chris.g)
(Assignee)

Updated

5 years ago
Attachment #639755 - Flags: review?(jones.chris.g)
(Assignee)

Comment 3

5 years ago
Created attachment 639762 [details] [diff] [review]
Framebuffer fallback on !sGLContext - v2
Attachment #639755 - Attachment is obsolete: true
Attachment #639762 - Flags: review?(jones.chris.g)
Attachment #639762 - Flags: review?(jones.chris.g) → review+
(Assignee)

Updated

5 years ago
Keywords: checkin-needed
(Assignee)

Comment 4

5 years ago
Created attachment 639836 [details] [diff] [review]
Framebuffer fallback on !sGLContext - v2 (rebased)

Rebased
Attachment #639762 - Attachment is obsolete: true
(Assignee)

Updated

5 years ago
Component: Widget → Widget: Gonk
https://hg.mozilla.org/integration/mozilla-inbound/rev/71be75e10f5f
Flags: in-testsuite-
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/71be75e10f5f
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla16
You need to log in before you can comment on or make changes to this bug.