Bug 1121072 - Always notify when layers cleared
☠☠ backed out by a27defc5a71d ☠ ☠
authorBill McCloskey <billm@mozilla.com>
Thu, 12 Mar 2015 11:33:43 -0700
changeset 263639 fca0ab2e718dffb228f83b5a92cc2d1375be9b24
parent 263638 38c35f7b2b7d16c97f3ecacf6f6f27a42612a897
child 263640 531892b480db9d22d9fcdd700ae18e4d3aab5515
push id4718
push userraliiev@mozilla.com
push dateMon, 11 May 2015 18:39:53 +0000
treeherdermozilla-beta@c20c4ef55f08 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1121072
milestone39.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 1121072 - Always notify when layers cleared
gfx/layers/ipc/LayerTransactionParent.cpp
--- a/gfx/layers/ipc/LayerTransactionParent.cpp
+++ b/gfx/layers/ipc/LayerTransactionParent.cpp
@@ -844,19 +844,18 @@ LayerTransactionParent::Attach(ShadowLay
 bool
 LayerTransactionParent::RecvClearCachedResources()
 {
   if (mRoot) {
     // NB: |mRoot| here is the *child* context's root.  In this parent
     // context, it's just a subtree root.  We need to scope the clear
     // of resources to exactly that subtree, so we specify it here.
     mLayerManager->ClearCachedResources(mRoot);
-
-    mShadowLayersManager->NotifyClearCachedResources(this);
   }
+  mShadowLayersManager->NotifyClearCachedResources(this);
   return true;
 }
 
 bool
 LayerTransactionParent::RecvForceComposite()
 {
   mShadowLayersManager->ForceComposite(this);
   return true;