Bug 1260391: Fix |ImageBridgeChild::UseOverlaySource|, r=dvander
authorThomas Zimmermann <tdz@users.sourceforge.net>
Wed, 30 Mar 2016 10:59:08 +0200
changeset 290870 1af60d28e0147fb846f9e6856976ea4dff9c38a6
parent 290869 1e79766a616201356b1b4ba707edabbd765ae9ff
child 290871 dc37c0e8f1351a5cd08960a53cfcc9cf753d26dc
push id74402
push usertdz@users.sourceforge.net
push dateWed, 30 Mar 2016 11:11:29 +0000
treeherdermozilla-inbound@dc37c0e8f135 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdvander
bugs1260391
milestone48.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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;