Bug 1132432 - Implement AsShadowableLayer() for ClientReadbackLayers. r=roc, a=lsblakk
authorJeff Muizelaar <jmuizelaar@mozilla.com>
Thu, 12 Mar 2015 17:51:07 -0400
changeset 250378 ff5485e89210
parent 250377 6df5a4ea72f3
child 250379 b31df8fa73a5
push id4569
push userryanvm@gmail.com
push date2015-03-13 20:45 +0000
treeherdermozilla-beta@b31df8fa73a5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc, lsblakk
bugs1132432
milestone37.0
Bug 1132432 - Implement AsShadowableLayer() for ClientReadbackLayers. r=roc, a=lsblakk Without this we early exit from the loop in ShadowLayerForwarder::InsertAfter which causes us to insert layers after the ReadbackLayers in the wrong order.
gfx/layers/client/ClientReadbackLayer.h
--- a/gfx/layers/client/ClientReadbackLayer.h
+++ b/gfx/layers/client/ClientReadbackLayer.h
@@ -18,16 +18,17 @@ class ClientReadbackLayer :
 {
 public:
   explicit ClientReadbackLayer(ClientLayerManager *aManager)
     : ReadbackLayer(aManager, nullptr)
   {
       mImplData = static_cast<ClientLayer*>(this);
   }
 
+  virtual ShadowableLayer* AsShadowableLayer() MOZ_OVERRIDE { return this; }
   virtual Layer* AsLayer() { return this; }
   virtual void RenderLayer() {}
 };
 
 } /* layers */
 } /* mozilla */
 
 #endif /* GFX_CLIENTREADBACKLAYER_H */