Make CompositorOGL and BasicCompositor use NativeLayer instead of NativeLayerCA with ifdefs
Categories
(Core :: Graphics: Layers, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox71 | --- | fixed |
People
(Reporter: mstange, Assigned: mstange)
References
Details
Attachments
(10 files)
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
Bug 1578099 - Remove now-unnecessary default framebuffer functionality from GLContextCGL. r=jgilbert
(deleted),
text/x-phabricator-request
|
Details |
Requested by Matt in a review in bug 1574592:
As discussed on IRC, I'd prefer for NativeLayer to have APIs for locking to get a DrawTarget, and to bind to the current framebuffer in a provided GLContext.
I think that'll give us less platform specific code in the renderer implementation, and avoid us needing to duplicate things between WebRender and Compositor's GL code.
Assignee | ||
Comment 1•5 years ago
|
||
The comments above these methods refer to NextSurface* methods which will be
added in later patches.
Assignee | ||
Comment 2•5 years ago
|
||
This uses MacIOSurface internally. NextSurfaceAsDrawTarget locks the MacIOSurface,
and NotifySurfaceReady unlocks it if necessary.
Depends on D44321
Assignee | ||
Comment 3•5 years ago
|
||
Depends on D44322
Assignee | ||
Comment 4•5 years ago
|
||
Depends on D44323
Assignee | ||
Comment 5•5 years ago
|
||
This returns the raw framebuffer GLuint and lets the caller bind it.
Initially I wanted to return a RefPtr<MozFramebuffer>, but then I discovered
that MozFramebuffer is not a refcounted class and prefers UniquePtrs.
Depends on D44324
Assignee | ||
Comment 6•5 years ago
|
||
Depends on D44325
Assignee | ||
Comment 7•5 years ago
|
||
Depends on D44326
Assignee | ||
Comment 8•5 years ago
|
||
Depends on D44327
Assignee | ||
Comment 9•5 years ago
|
||
CompositingRenderTargetOGL objects are no longer reused between frames. They are
recreated each frame around a reused framebuffer. This lets us remove the
SetOrigin method again, because we specify the right render target origin on
creation.
Depends on D44328
Assignee | ||
Comment 10•5 years ago
|
||
This essentially backs out the two patches from bug 1565668 that added this
functionality.
Depends on D44329
Comment 11•5 years ago
|
||
Comment 12•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/bde43dd23263
https://hg.mozilla.org/mozilla-central/rev/cbe7c0b8bf00
https://hg.mozilla.org/mozilla-central/rev/7a5e7c582e7d
https://hg.mozilla.org/mozilla-central/rev/3d0e490caad0
https://hg.mozilla.org/mozilla-central/rev/34aa23a05c67
https://hg.mozilla.org/mozilla-central/rev/e115223a94ca
https://hg.mozilla.org/mozilla-central/rev/f09be81f4242
https://hg.mozilla.org/mozilla-central/rev/ddf3709af4c8
https://hg.mozilla.org/mozilla-central/rev/d1d697132576
https://hg.mozilla.org/mozilla-central/rev/cb449c1f91ff
Updated•5 years ago
|
Description
•