Bug 1260391: Fix |ImageBridgeChild::UseOverlaySource|, r=dvander
authorThomas Zimmermann <tdz@users.sourceforge.net>
Wed, 30 Mar 2016 10:59:08 +0200
changeset 291047 1af60d28e0147fb846f9e6856976ea4dff9c38a6
parent 291046 1e79766a616201356b1b4ba707edabbd765ae9ff
child 291048 dc37c0e8f1351a5cd08960a53cfcc9cf753d26dc
push id19656
push usergwagner@mozilla.com
push dateMon, 04 Apr 2016 13:43:23 +0000
treeherderb2g-inbound@e99061fde28a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdvander
bugs1260391
milestone48.0a1
Bug 1260391: Fix |ImageBridgeChild::UseOverlaySource|, r=dvander
gfx/layers/ipc/ImageBridgeChild.cpp
--- a/gfx/layers/ipc/ImageBridgeChild.cpp
+++ b/gfx/layers/ipc/ImageBridgeChild.cpp
@@ -221,18 +221,23 @@ ImageBridgeChild::UseComponentAlphaTextu
 #ifdef MOZ_WIDGET_GONK
 void
 ImageBridgeChild::UseOverlaySource(CompositableClient* aCompositable,
                                    const OverlaySource& aOverlay,
                                    const nsIntRect& aPictureRect)
 {
   MOZ_ASSERT(aCompositable);
   MOZ_ASSERT(aCompositable->IsConnected());
-  mTxn->AddEdit(OpUseOverlaySource(nullptr, aCompositable->GetIPDLActor(),
-      aOverlay, aPictureRect));
+
+  CompositableOperation op(
+    nullptr,
+    aCompositable->GetIPDLActor(),
+    OpUseOverlaySource(aOverlay, aPictureRect));
+
+  mTxn->AddEdit(op);
 }
 #endif
 
 // Singleton
 static StaticRefPtr<ImageBridgeChild> sImageBridgeChildSingleton;
 static StaticRefPtr<ImageBridgeParent> sImageBridgeParentSingleton;
 static Thread *sImageBridgeChildThread = nullptr;