Bug 1482415 - Handle case where we failed to allocate a buffer and are async painting. r=nical
authorRyan Hunt <rhunt@eqrion.net>
Mon, 13 Aug 2018 23:15:09 -0500
changeset 431539 fea8a70ad61252016639588a0f6e1e8b75508912
parent 431538 1185bd9092147fee2a8aa3668defd719061f3f2b
child 431540 7cd543332d858e28197f3e6221023df787875ba5
push id106475
push userrhunt@eqrion.net
push dateTue, 14 Aug 2018 20:23:55 +0000
treeherdermozilla-inbound@fea8a70ad612 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnical
bugs1482415
milestone63.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 1482415 - Handle case where we failed to allocate a buffer and are async painting. r=nical
gfx/layers/client/ContentClient.cpp
--- a/gfx/layers/client/ContentClient.cpp
+++ b/gfx/layers/client/ContentClient.cpp
@@ -290,17 +290,17 @@ ContentClient::BeginPaint(PaintedLayer* 
   result.mMode = dest.mBufferMode;
 
   return result;
 }
 
 void
 ContentClient::EndPaint(PaintState& aPaintState, nsTArray<ReadbackProcessor::Update>* aReadbackUpdates)
 {
-  if (aPaintState.mAsyncTask) {
+  if (aPaintState.mAsyncTask && mBuffer) {
     aPaintState.mAsyncTask->mCapture = mBuffer->EndCapture();
   }
 }
 
 nsIntRegion
 ExpandDrawRegion(ContentClient::PaintState& aPaintState,
                  RotatedBuffer::DrawIterator* aIter,
                  BackendType aBackendType)