Bug 1320009 - Fix build failure r=nical?
authorsotaro <sotaro.ikeda.g@gmail.com>
Tue, 29 Nov 2016 12:03:06 +0900
changeset 459838 6023b392d86f72126824e9046c8697bebb682560
parent 459837 2a9608132a809e8277a1436b36c9ac513d4b9986
child 459839 81cce3346f3fde330d7f7eedb5a9258f0455bc17
push id41343
push userkgupta@mozilla.com
push dateThu, 12 Jan 2017 20:13:44 +0000
reviewersnical
bugs1320009
milestone53.0a1
Bug 1320009 - Fix build failure r=nical?
gfx/layers/ipc/CompositorBridgeParent.cpp
--- a/gfx/layers/ipc/CompositorBridgeParent.cpp
+++ b/gfx/layers/ipc/CompositorBridgeParent.cpp
@@ -1569,17 +1569,17 @@ CompositorBridgeParent::AllocPWebRenderB
   MOZ_ASSERT(aPipelineId == mRootLayerTreeID);
   MOZ_ASSERT(!mWRBridge);
   MOZ_ASSERT(!mCompositor);
 
   RefPtr<gl::GLContext> glc(gl::GLContextProvider::CreateForCompositorWidget(mWidget, true));
   mCompositor = new WebRenderCompositorOGL(glc.get());
   mWRBridge = new WebRenderBridgeParent(aPipelineId,
         mWidget, glc.get(), nullptr, mCompositor.get());
-  mWRBridge->AddRef(); // IPDL reference
+  mWRBridge.get()->AddRef(); // IPDL reference
   MonitorAutoLock lock(*sIndirectLayerTreesLock);
   MOZ_ASSERT(sIndirectLayerTrees[aPipelineId].mWRBridge == nullptr);
   sIndirectLayerTrees[aPipelineId].mWRBridge = mWRBridge;
   *aTextureFactoryIdentifier = mCompositor->GetTextureFactoryIdentifier();
   return mWRBridge;
 }
 
 bool