Closed
Bug 1490752
Opened 6 years ago
Closed 6 years ago
Ensure that WebRender display lists aren't kept alive for all background tabs
Categories
(Core :: Graphics: WebRender, enhancement, P2)
Core
Graphics: WebRender
Tracking
()
RESOLVED
INVALID
People
(Reporter: nical, Unassigned)
References
Details
Background layer trees are kept alive for 300ms. I'm not 100% sure whether we do that with WebRender display lists or whether they just stay alive until the tab is closed.
We should investigate and make sure the behavior is similar to layers.
Updated•6 years ago
|
Blocks: stage-wr-trains
Priority: -- → P2
Updated•6 years ago
|
Priority: P2 → P3
Updated•6 years ago
|
Priority: P3 → P2
Comment 1•6 years ago
|
||
Tab resources are freed as same way as ClientLayerManager by calling ClearCachedResources() like the following.
TabChild::MakeHidden()
->TabChild::ClearCachedResources()
->WebRenderLayerManager::ClearCachedResources()
->WebRenderBridgeParent::RecvClearCachedResources()
Comment 2•6 years ago
|
||
Thanks Sotaro!
Looks like that will cause us to invoke ClearDisplayList here:
https://searchfox.org/mozilla-central/rev/819cd31a93fd50b7167979607371878c4d6f18e8/gfx/layers/wr/WebRenderBridgeParent.cpp#1306
Which I presume will drop the old display list and scene from WR.
So perhaps there's nothing left to do here. Nical, do you agree?
Flags: needinfo?(nical.bugzilla)
Reporter | ||
Comment 3•6 years ago
|
||
Agreed.
Status: NEW → RESOLVED
Closed: 6 years ago
Flags: needinfo?(nical.bugzilla)
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•