mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 1691556 - Drop stale async resource updates after a namespace change. r=jrmuizel
When the ID namespace changes for a WebRenderBridgeChild, all bindings from that namespace are now invalid. We already drop any outstanding async animation holds on surfaces for recycling, but we still would try to send out async resource updates that were already queued before the namespace was changed. This patch forces us to drop those now defunct transactions. Differential Revision: https://phabricator.services.mozilla.com/D108481
This commit is contained in:
parent
6402cfaba1
commit
b59ae453a7
@ -630,6 +630,7 @@ void WebRenderLayerManager::ClearCachedResources(Layer* aSubtree) {
|
||||
|
||||
void WebRenderLayerManager::WrUpdated() {
|
||||
ClearAsyncAnimations();
|
||||
mStateManager.mAsyncResourceUpdates.reset();
|
||||
mWebRenderCommandBuilder.ClearCachedResources();
|
||||
DiscardLocalImages();
|
||||
mDisplayItemCache.Clear();
|
||||
|
Loading…
Reference in New Issue
Block a user