Bug 1143575. Remove unused Image::IsSentToCompositor tracking. r=nical draft
authorRobert O'Callahan <robert@ocallahan.org>
Fri, 20 Mar 2015 16:13:46 +1300
changeset 275557 faa827249fb1d4abde3acfb02016ab6f39230d06
parent 275556 f6b4fe7fd004f61dc5834f8530d93826d919f595
child 275558 7d4d78b27f935ea7d32006d84cc54551d0839844
push id3189
push userrocallahan@mozilla.com
push dateFri, 03 Jul 2015 11:12:01 +0000
reviewersnical
bugs1143575
milestone42.0a1
Bug 1143575. Remove unused Image::IsSentToCompositor tracking. r=nical
gfx/layers/ImageContainer.h
--- a/gfx/layers/ImageContainer.h
+++ b/gfx/layers/ImageContainer.h
@@ -140,19 +140,16 @@ public:
 
   ImageBackendData* GetBackendData(LayersBackend aBackend)
   { return mBackendData[aBackend]; }
   void SetBackendData(LayersBackend aBackend, ImageBackendData* aData)
   { mBackendData[aBackend] = aData; }
 
   int32_t GetSerial() { return mSerial; }
 
-  void MarkSent() { mSent = true; }
-  bool IsSentToCompositor() { return mSent; }
-
   virtual already_AddRefed<gfx::SourceSurface> GetAsSourceSurface() = 0;
 
   virtual GrallocImage* AsGrallocImage()
   {
     return nullptr;
   }
 
   virtual bool IsValid() { return true; }
@@ -164,18 +161,17 @@ public:
   * synchronize the TextureClient with the TextureHost).
   */
   virtual TextureClient* GetTextureClient(CompositableClient* aClient) { return nullptr; }
 
 protected:
   Image(void* aImplData, ImageFormat aFormat) :
     mImplData(aImplData),
     mSerial(++sSerialCounter),
-    mFormat(aFormat),
-    mSent(false)
+    mFormat(aFormat)
   {}
 
   // Protected destructor, to discourage deletion outside of Release():
   virtual ~Image() {}
 
   mozilla::EnumeratedArray<mozilla::layers::LayersBackend,
                            mozilla::layers::LayersBackend::LAYERS_LAST,
                            nsAutoPtr<ImageBackendData>>