Closed
Bug 959171
Opened 11 years ago
Closed 11 years ago
Fix how to bind EGLImage in GrallocTextureHostOGL
Categories
(Core :: Graphics: Layers, defect)
Tracking
()
RESOLVED
FIXED
mozilla29
People
(Reporter: sotaro, Assigned: sotaro)
References
Details
Attachments
(1 file, 3 obsolete files)
2.27 KB,
patch
|
sotaro
:
review+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #946720 +++
It is created from Bug 946720 Comment 24.
Assignee | ||
Comment 1•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Attachment #8359232 -
Flags: review?(nical.bugzilla)
Assignee | ||
Comment 2•11 years ago
|
||
Comment on attachment 8359232 [details] [diff] [review]
patch - Fix how to bind EGLImage in GrallocTextureHostOGL
Cancel to request reviewing. There seems still other cause of genlock failure.
Attachment #8359232 -
Flags: review?(nical.bugzilla)
Assignee | ||
Comment 3•11 years ago
|
||
Attachment #8359232 -
Attachment is obsolete: true
Assignee | ||
Updated•11 years ago
|
Attachment #8361264 -
Flags: review?(nical.bugzilla)
Comment 4•11 years ago
|
||
Comment on attachment 8361264 [details] [diff] [review]
patch v2 - Fix how to bind EGLImage in GrallocTextureHostOGL
Review of attachment 8361264 [details] [diff] [review]:
-----------------------------------------------------------------
I am not an EGL expert so if you have doubts you may want to ask for an additional reviewer, otherwise LGTM.
::: gfx/layers/opengl/GrallocTextureHost.cpp
@@ +174,5 @@
> }
>
> if (!mNeedsReset) {
> + // Update binding to the EGLImage
> + gl()->MakeCurrent();
nit: I don't know if MakeCurrent can fail on b2g, but I have had to deal with it failing on Linux (mostly during shutdown). If so, you should probably do:
if (gl()->MakeCurrent()) {
// do stuff
} else {
// print the most scary warning you can think of
}
Attachment #8361264 -
Flags: review?(nical.bugzilla) → review+
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → sotaro.ikeda.g
Status: NEW → ASSIGNED
Assignee | ||
Comment 5•11 years ago
|
||
(In reply to Nicolas Silva [:nical] from comment #4)
>
> nit: I don't know if MakeCurrent can fail on b2g, but I have had to deal
> with it failing on Linux (mostly during shutdown). If so, you should
> probably do:
>
> if (gl()->MakeCurrent()) {
> // do stuff
> } else {
> // print the most scary warning you can think of
> }
I never saw gl()->MakeCurrent() failure on gonk. We can put off this until we saw it on gonk.
Assignee | ||
Comment 6•11 years ago
|
||
>
> I am not an EGL expert so if you have doubts you may want to ask for an
> additional reviewer, otherwise LGTM.
This is an easy fix. Your review seems enough.
Assignee | ||
Comment 7•11 years ago
|
||
Committable patch. Carry 'r=nical'.
Attachment #8361264 -
Attachment is obsolete: true
Attachment #8362744 -
Flags: review+
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 8•11 years ago
|
||
Comment 9•11 years ago
|
||
Keywords: checkin-needed
Comment 10•11 years ago
|
||
Backed out for B2G mochitest-3 crashes.
https://hg.mozilla.org/integration/mozilla-inbound/rev/62f929fab468
https://tbpl.mozilla.org/php/getParsedLog.php?id=33346478&tree=Mozilla-Inbound
Assignee | ||
Comment 11•11 years ago
|
||
Hmm, it's strange the patch hit the crash. The change might hit another bug.
Assignee | ||
Comment 12•11 years ago
|
||
Assignee | ||
Comment 13•11 years ago
|
||
I recognize the cause of the test crash.
During emulator test, there is a cases that compositor is not started yet even after test start.
At some point, Compositor is start to work. After that the compositor is set to TextureHost. In ImageHost::Composite() and then GrallocTextureSourceOGL::BindTexture() is called.
EGL Image is normally created at GrallocTextureSourceOGL::SetCompositableBackendSpecificData(). It is called when Texture swap. But at the time if Compositor is not present, EGLImage is not created. If it happens, GrallocTextureSourceOGL::BindTexture() does not have a EGLImage to bind.
It cause the crash.
Assignee | ||
Comment 14•11 years ago
|
||
Fix mochi test failure.
Attachment #8362744 -
Attachment is obsolete: true
Attachment #8364557 -
Flags: review+
Assignee | ||
Comment 15•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 16•11 years ago
|
||
Keywords: checkin-needed
Comment 17•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
You need to log in
before you can comment on or make changes to this bug.
Description
•