Don't use CompositorBridgeChild in PrepareBuffer if sync OMTP is enabled (bug 1416782, r=dvander a=gchang)
authorRyan Hunt <rhunt@eqrion.net>
Mon, 13 Nov 2017 12:51:19 -0500
changeset 444820 645141391be71853e7a7dff8913f4df685b3ffb6
parent 444819 a706ed0c3235f882f8476c83290364d509b458aa
child 444821 bd9c24730b5b1bbd4a35d165eaafadd108e6115d
push id1618
push userCallek@gmail.com
push dateThu, 11 Jan 2018 17:45:48 +0000
treeherdermozilla-release@882ca853e05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdvander, gchang
bugs1416782
milestone58.0
Don't use CompositorBridgeChild in PrepareBuffer if sync OMTP is enabled (bug 1416782, r=dvander a=gchang) MozReview-Commit-ID: DMbKcDEkkeP
gfx/layers/PaintThread.cpp
--- a/gfx/layers/PaintThread.cpp
+++ b/gfx/layers/PaintThread.cpp
@@ -252,17 +252,19 @@ PaintThread::AsyncPrepareBuffer(Composit
     mInAsyncPaintGroup = true;
     PROFILER_TRACING("Paint", "Rasterize", TRACING_INTERVAL_START);
   }
 
   if (!aState->PrepareBuffer()) {
     gfxCriticalNote << "Failed to prepare buffers on the paint thread.";
   }
 
-  aBridge->NotifyFinishedAsyncPrepareBuffer(aState);
+  if (aBridge) {
+    aBridge->NotifyFinishedAsyncPrepareBuffer(aState);
+  }
 }
 
 void
 PaintThread::PaintContents(CapturedPaintState* aState,
                            PrepDrawTargetForPaintingCallback aCallback)
 {
   MOZ_ASSERT(NS_IsMainThread());
   MOZ_ASSERT(aState);