Bug 1285174 - Make sure we render layers even if they are currently hidden (since that can change asynchronously). r=mstange, a=sylvestre
authorMatt Woodrow <mwoodrow@mozilla.com>
Tue, 02 Aug 2016 18:47:26 +1200
changeset 349665 ac9f7f2ed879a2ac380fac1dd95069d940058c92
parent 349664 7827bb5b1a728293031353f23db33e06f58887bd
child 349666 79f0792841417c6cdf8cb78e8ee5026f53ba72aa
push id1230
push userjlund@mozilla.com
push dateMon, 31 Oct 2016 18:13:35 +0000
treeherdermozilla-release@5e06e3766db2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmstange, sylvestre
bugs1285174
milestone50.0a2
Bug 1285174 - Make sure we render layers even if they are currently hidden (since that can change asynchronously). r=mstange, a=sylvestre
gfx/layers/client/ClientContainerLayer.h
--- a/gfx/layers/client/ClientContainerLayer.h
+++ b/gfx/layers/client/ClientContainerLayer.h
@@ -53,19 +53,16 @@ public:
     AutoTArray<Layer*, 12> children;
     SortChildrenBy3DZOrder(children);
 
     ReadbackProcessor readback;
     readback.BuildUpdates(this);
 
     for (uint32_t i = 0; i < children.Length(); i++) {
       Layer* child = children.ElementAt(i);
-      if (!child->IsVisible()) {
-        continue;
-      }
 
       ToClientLayer(child)->RenderLayerWithReadback(&readback);
 
       if (!ClientManager()->GetRepeatTransaction() &&
           !child->GetInvalidRegion().IsEmpty()) {
         child->Mutated();
       }
     }