Remove ComputeVisibility
Categories
(Core :: Web Painting, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox93 | --- | fixed |
People
(Reporter: jrmuizel, Assigned: jrmuizel)
References
Details
Attachments
(4 files)
Some of the remaining ways that ComputeVisibility() can mutate display items are by setting the PaintRect to do occlusion culling and setting mIsOpaque on nsDisplayLists. We can probably do without both of these things for the situations where we actually call ComputeVisibility (for items that WR doesn't support, plus the fallback painting paths (screenshots, printing, popups etc). This suggests we can get rid of all the ComputeVisibility infrastructure.
Also, WebKit doesn't seem to have ComputeVisibility() occlusion culling in their main painting path which suggests that it's reasonable to get by without for our non-performance sensitive use cases.
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
This lets us remove ComputeVisibility()
Assignee | ||
Comment 2•3 years ago
|
||
The only advantage we were getting from this was from GetOpaqueRegion, but
that no longer applies now that GetOpaqueRegion does the calculation directly.
Assignee | ||
Comment 3•3 years ago
|
||
This will cause to paint items that would've previously been occlusion culled,
but we shouldn't be using this code in any performance critical areas and
removing the occlusion culling infrastructure will let us make the fast path
faster.
Assignee | ||
Comment 4•3 years ago
|
||
Pushed by jmuizelaar@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bd896ca06ed2 Calculate opaqueness on demand instead of in ComputeVisibility. r=mattwoodrow https://hg.mozilla.org/integration/autoland/rev/a670bdf70b2b Avoid calling ComputeVisibility() during fallback. r=mattwoodrow https://hg.mozilla.org/integration/autoland/rev/fb02869b4928 Drop call to ComputeVisibility in nsDisplayList::Paint. r=mattwoodrow https://hg.mozilla.org/integration/autoland/rev/97dc8c1b36ee Remove unused ComputeVisibility infrastructure. r=mattwoodrow
Comment 6•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/bd896ca06ed2
https://hg.mozilla.org/mozilla-central/rev/a670bdf70b2b
https://hg.mozilla.org/mozilla-central/rev/fb02869b4928
https://hg.mozilla.org/mozilla-central/rev/97dc8c1b36ee
Description
•