Bug 1639388 - Re-instate call to ClearAllCache. r=jrmuizel
authorJean-Yves Avenard <jyavenard@mozilla.com>
Wed, 20 May 2020 00:29:39 +0000
changeset 530934 7646b27525be42e7cb39edcac3f9c79dd9763526
parent 530933 d5cf77118989c0f40a5490b35ed6716ea689eb64
child 530935 0aab0ef9629944ebb24207665d7cc9c6836e2b98
push id37434
push userabutkovits@mozilla.com
push dateWed, 20 May 2020 10:05:10 +0000
treeherdermozilla-central@005ef1c25992 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel
bugs1639388, 1634253, 1622360
milestone78.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1639388 - Re-instate call to ClearAllCache. r=jrmuizel The line got mistakenly removed in bug 1634253 due to incorrect rebase with bug 1622360 Differential Revision: https://phabricator.services.mozilla.com/D76064
gfx/layers/ipc/CompositorBridgeParent.cpp
--- a/gfx/layers/ipc/CompositorBridgeParent.cpp
+++ b/gfx/layers/ipc/CompositorBridgeParent.cpp
@@ -2500,16 +2500,17 @@ mozilla::ipc::IPCResult CompositorBridge
 
 bool CompositorBridgeParent::IsSameProcess() const {
   return OtherPid() == base::GetCurrentProcId();
 }
 
 void CompositorBridgeParent::NotifyWebRenderContextPurge() {
   MOZ_ASSERT(CompositorThread()->IsOnCurrentThread());
   RefPtr<wr::WebRenderAPI> api = mWrBridge->GetWebRenderAPI();
+  api->ClearAllCaches();
 }
 
 void CompositorBridgeParent::NotifyWebRenderDisableNativeCompositor() {
   MOZ_ASSERT(CompositorThread()->IsOnCurrentThread());
   if (mWrBridge) {
     mWrBridge->DisableNativeCompositor();
   }
 }