Bug 1143575. Remove ImageClientBridge::Updated. r=nical draft
authorRobert O'Callahan <robert@ocallahan.org>
Thu, 19 Mar 2015 21:00:52 +1300
changeset 275586 b2be8062ca8a331e4a09d04a714d64018b8dee2f
parent 275585 7ef0a10fa41cbfd95571280dad03d6c93a483ec6
child 275587 1ee043469e2ce3f516919afdf4fa06fc90ee1800
push id3189
push userrocallahan@mozilla.com
push dateFri, 03 Jul 2015 11:12:01 +0000
reviewersnical
bugs1143575
milestone42.0a1
Bug 1143575. Remove ImageClientBridge::Updated. r=nical
gfx/layers/client/ImageClient.cpp
gfx/layers/client/ImageClient.h
--- a/gfx/layers/client/ImageClient.cpp
+++ b/gfx/layers/client/ImageClient.cpp
@@ -293,17 +293,16 @@ ImageClientBridge::UpdateImage(ImageCont
   }
   if (mAsyncContainerID == aContainer->GetAsyncContainerID()) {
     return true;
   }
   mAsyncContainerID = aContainer->GetAsyncContainerID();
   static_cast<ShadowLayerForwarder*>(GetForwarder())->AttachAsyncCompositable(mAsyncContainerID, mLayer);
   AutoLockImage autoLock(aContainer);
   aContainer->NotifyPaintedImage(autoLock.GetImage());
-  Updated();
   return true;
 }
 
 already_AddRefed<Image>
 ImageClientSingle::CreateImage(ImageFormat aFormat)
 {
   nsRefPtr<Image> img;
   switch (aFormat) {
--- a/gfx/layers/client/ImageClient.h
+++ b/gfx/layers/client/ImageClient.h
@@ -124,17 +124,16 @@ protected:
 class ImageClientBridge : public ImageClient
 {
 public:
   ImageClientBridge(CompositableForwarder* aFwd,
                     TextureFlags aFlags);
 
   virtual bool UpdateImage(ImageContainer* aContainer, uint32_t aContentFlags) override;
   virtual bool Connect() override { return false; }
-  virtual void Updated() {}
 
   virtual TextureInfo GetTextureInfo() const override
   {
     return TextureInfo(mType);
   }
 
   virtual void SetIPDLActor(CompositableChild* aChild) override
   {