Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync changes from mozilla-central gfx/wr #3872
Sync changes from mozilla-central gfx/wr #3872
Changes from 1 commit
240b8ed0809ea18aa347db2bc0a8b0e05108353c5a6f45b76d422aab692bc611fc351213e86e2ecd8232b152ac57b1f4fa1ee6c0f85ccbbf142de926cffb1b54d5fe8ab7ca3e49df0ecad0cd124d776c9517a4b67ed1505bf01196a1991bcdab8afd8d121d8256215e5aad73f4236b4151b4045File filter...
Jump to…
Bug 1579235 - Part 9 - Optimize compositor surface overlays. r=Bert
This patch improves the performance of compositor surfaces in two ways: (1) Ignore primitives behind the first compositor surface when determining whether a tile needs to be moved to the overlay (alpha) pass. This means WR only moves a tile to the alpha pass when it has primitives that overlap with the compositor surface bounding rect, and are ordered after that compositor surface. In practice, this means most tiles are able to remain in the fast (opaque) path. Typically, a small number of tiles that contain overlay video controls are moved to the alpha pass. (2) Register the opaque compositor surfaces as potential occluders. This allows tiles that are completely covered by a compositor surface to be removed from the compositor visual tree, which helps both the simple and native compositor modes. Between them, these optimizations typically mean that when watching video in full-screen, nothing is composited except the video surface itself, and some small region(s) where video overlay controls are currently active. Differential Revision: https://phabricator.services.mozilla.com/D64909 [ghsync] From https://hg.mozilla.org/mozilla-central/rev/f6dc6b38288cfcb9f5f70932830d4a3d2b3759b2