Platform/GFX/Surfaces: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 362: Line 362:
   |                  |                    |                  |
   |                  |                    |                  |
   +------------------+                    +------------------+
   +------------------+                    +------------------+
The need for being able to let a MozSurface be used by several swap chains comes from two things:
- A) we want several layers to be able to use the same MozSurface and right now each layer has its own equivalent of a swap chain
- B) the media framework may pass MozSurfaces to any different layers without any restriction.
B) is a stronger constraint but it is limited to video, which may have a separate implementation. A) could be solved by either letting the same MozSurface be in several swap chains, or making it possible for several layers to use the same swap chain (which probably makes more sense, but requires us to think about how we expose this functionality).
Confirmed users
137

edits