Closed
Bug 942505
Opened 10 years ago
Closed 10 years ago
Move everything SharedHandle-related out of GLContext
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
FIXED
mozilla28
People
(Reporter: bjacob, Assigned: bjacob)
References
Details
(Whiteboard: [qa-])
Attachments
(1 file)
42.47 KB,
patch
|
jgilbert
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Updated•10 years ago
|
Summary: Move everything ShareHandle-related out of GLContext → Move everything SharedHandle-related out of GLContext
Assignee | ||
Comment 2•10 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=5ff94a726ea5 There are several changes in this patch that aren't just moving code around: 1. Some dead code was removed, especially UpdateSharedHandle, and the mTemporary* thing that was there in GLContextProviderEGL.cpp and was only used by it. 2. The mShareWithEGLImage thing in GLContextProviderEGL.cpp becomes a static function in GLSharedHandleHelpers.cpp 3. EGLTextureWrapper::CreateEGLImage used to take a GLuint, now takes a uintptr_t. Reason: we're reinterpreting it as a EGL type that's effectively a void*, and we now -Werror on this. ... plus a couple of small things that I don't remember.
Attachment #8340196 -
Flags: review?(jgilbert)
Assignee | ||
Comment 3•10 years ago
|
||
Note that this takes 338 lines of code out of GLContextProviderEGL.cpp, and 65 out of GLContext.h.
Assignee | ||
Comment 4•10 years ago
|
||
Another try on android. https://tbpl.mozilla.org/?tree=Try&rev=24cdf4fa0b38 The reason why this was needed is this code path: http://hg.mozilla.org/mozilla-central/file/e9337081c744/gfx/gl/GLContextProviderEGL.cpp#l940 Can this be hit on the GLContext underlying a WebGL context? If yes, this is a conformance bug!
Assignee | ||
Comment 5•10 years ago
|
||
I now remember another thing that departs slightly from strict copy-and-paste. The cross-platform-ness was a bit trivial, as this only has a nontrivial implementation on EGL, and I don't suppose that this is going to change, so this is now using a single implementation with e.g.: + // unimplemented outside of EGL + if (gl->GetContextType() != ContextTypeEGL) + return 0;
Assignee | ||
Comment 6•10 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=b4db4504feb0
Comment 7•10 years ago
|
||
(In reply to Benoit Jacob [:bjacob] from comment #4) > Another try on android. https://tbpl.mozilla.org/?tree=Try&rev=24cdf4fa0b38 > > The reason why this was needed is this code path: > > http://hg.mozilla.org/mozilla-central/file/e9337081c744/gfx/gl/ > GLContextProviderEGL.cpp#l940 > > Can this be hit on the GLContext underlying a WebGL context? If yes, this is > a conformance bug! WebGL contexts shouldn't be using this path anymore. IIRC, this is only used by plugins now.
Updated•10 years ago
|
Attachment #8340196 -
Flags: review?(jgilbert) → review+
Assignee | ||
Comment 8•10 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=eb3be360fb34
Assignee | ||
Comment 9•10 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=1b48093b8244
Assignee | ||
Comment 10•10 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=01672e3e55a0 http://hg.mozilla.org/integration/mozilla-inbound/rev/3856aa97c77c
Target Milestone: --- → mozilla28
Comment 11•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/3856aa97c77c
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•9 years ago
|
Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•