Bug 981393 - Check against correct compositable types for old-textures. r=nical
authorMatt Woodrow <mwoodrow@mozilla.com>
Tue, 11 Mar 2014 11:12:48 +1300
changeset 172877 c55a8ec9e66fe591faf1606381c0e493454a0cad
parent 172876 2cc7b484d797bd10da7c942494e4794ec7cebfb9
child 172878 eb87dd95cfc5dc98c31824b05ec6198e9bb73dba
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersnical
bugs981393
milestone30.0a1
Bug 981393 - Check against correct compositable types for old-textures. r=nical
gfx/layers/ipc/CompositableTransactionParent.cpp
--- a/gfx/layers/ipc/CompositableTransactionParent.cpp
+++ b/gfx/layers/ipc/CompositableTransactionParent.cpp
@@ -96,18 +96,18 @@ CompositableParentManager::ReceiveCompos
                                                  op.bufferRect());
       break;
     }
     case CompositableOperation::TOpDestroyThebesBuffer: {
       MOZ_LAYERS_LOG(("[ParentSide] Created double buffer"));
       const OpDestroyThebesBuffer& op = aEdit.get_OpDestroyThebesBuffer();
       CompositableParent* compositableParent = static_cast<CompositableParent*>(op.compositableParent());
       CompositableHost* compositableHost = compositableParent->GetCompositableHost();
-      if (compositableHost->GetType() != COMPOSITABLE_CONTENT_SINGLE &&
-          compositableHost->GetType() != COMPOSITABLE_CONTENT_DOUBLE)
+      if (compositableHost->GetType() != BUFFER_CONTENT &&
+          compositableHost->GetType() != BUFFER_CONTENT_DIRECT)
       {
         return false;
       }
       DeprecatedContentHostBase* content = static_cast<DeprecatedContentHostBase*>(compositableHost);
       content->DestroyTextures();
 
       break;
     }