Bug 1000170 - Make ClientTiledThebesLayer report itself as such in layer dumps. r=BenWa
☠☠ backed out by 7eb76208626e ☠ ☠
authorBrian Hackett <bhackett1024@gmail.com>
Wed, 23 Apr 2014 14:12:31 -0700
changeset 180207 bca2faf314bf682c79916e1e1a3a0fca70c482fb
parent 180206 208bcb7879c00c6143b190a63ecaff5d6ed12b81
child 180208 e4e33370b648a1fdd6d868929d0b217b0b6d5154
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewersBenWa
bugs1000170
milestone31.0a1
Bug 1000170 - Make ClientTiledThebesLayer report itself as such in layer dumps. r=BenWa
gfx/layers/client/ClientTiledThebesLayer.h
--- a/gfx/layers/client/ClientTiledThebesLayer.h
+++ b/gfx/layers/client/ClientTiledThebesLayer.h
@@ -39,16 +39,19 @@ class ClientTiledThebesLayer : public Th
                                public ClientLayer
 {
   typedef ThebesLayer Base;
 
 public:
   ClientTiledThebesLayer(ClientLayerManager* const aManager);
   ~ClientTiledThebesLayer();
 
+  // Override name to distinguish it from ClientThebesLayer in layer dumps
+  virtual const char* Name() const { return "TiledThebesLayer"; }
+
   // Thebes Layer
   virtual Layer* AsLayer() { return this; }
   virtual void InvalidateRegion(const nsIntRegion& aRegion) {
     mInvalidRegion.Or(mInvalidRegion, aRegion);
     mValidRegion.Sub(mValidRegion, aRegion);
     mLowPrecisionValidRegion.Sub(mLowPrecisionValidRegion, aRegion);
   }