Bug 1479939 - Ensure we tell WR to remove the compositable pipelines when clearing resources. r?sotaro
MozReview-Commit-ID: AxuvERUalhb
--- a/gfx/layers/wr/WebRenderBridgeParent.cpp
+++ b/gfx/layers/wr/WebRenderBridgeParent.cpp
@@ -1705,16 +1705,17 @@ WebRenderBridgeParent::ClearResources()
}
}
mTextureHosts.clear();
for (const auto& entry : mAsyncCompositables) {
wr::PipelineId pipelineId = wr::AsPipelineId(entry.first);
RefPtr<WebRenderImageHost> host = entry.second;
host->ClearWrBridge();
mAsyncImageManager->RemoveAsyncImagePipeline(pipelineId, txn);
+ txn.RemovePipeline(pipelineId);
}
mAsyncCompositables.clear();
for (const auto& entry : mSharedSurfaceIds) {
wr::ExternalImageId id = wr::ToExternalImageId(entry);
mAsyncImageManager->HoldExternalImage(mPipelineId, mWrEpoch, id);
}
mSharedSurfaceIds.clear();