Bug 950113 - Avoid destroying our texture everytime we composite a ImageHost - r=nical
authorBenoit Jacob <bjacob@mozilla.com>
Wed, 15 Jan 2014 07:45:28 -0500
changeset 163582 960a1153f12e09b3dc14d92ecfa9d2e179f7f3c6
parent 163581 347d5704cbe1c779c8a0ece496dc5d7bf4be1b79
child 163583 f0d8f9868ca4de098408addc652c75a2a6ef24fd
push idunknown
push userunknown
push dateunknown
reviewersnical
bugs950113
milestone29.0a1
Bug 950113 - Avoid destroying our texture everytime we composite a ImageHost - r=nical
gfx/layers/composite/ImageHost.cpp
--- a/gfx/layers/composite/ImageHost.cpp
+++ b/gfx/layers/composite/ImageHost.cpp
@@ -33,22 +33,16 @@ ImageHost::ImageHost(const TextureInfo& 
   , mHasPictureRect(false)
 {}
 
 ImageHost::~ImageHost() {}
 
 void
 ImageHost::UseTextureHost(TextureHost* aTexture)
 {
-  if (mFrontBuffer) {
-    // XXX - When we implement sharing textures between several compositables
-    // we will need to not remove the compositor if there is another compositable
-    // using the texture.
-    mFrontBuffer->SetCompositor(nullptr);
-  }
   CompositableHost::UseTextureHost(aTexture);
   mFrontBuffer = aTexture;
 }
 
 TextureHost*
 ImageHost::GetAsTextureHost()
 {
   return mFrontBuffer;