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:
Andrew Osmond
2021-03-15 17:20:23 +00:00
parent 4bc6a119f6
commit e368c62771

View File

@@ -630,6 +630,7 @@ void WebRenderLayerManager::ClearCachedResources(Layer* aSubtree) {
void WebRenderLayerManager::WrUpdated() {
ClearAsyncAnimations();
mStateManager.mAsyncResourceUpdates.reset();
mWebRenderCommandBuilder.ClearCachedResources();
DiscardLocalImages();
mDisplayItemCache.Clear();