Bug 1296996 - Use ProducerRead{Acquire/Release} in ReadBuffer::Create - r=jgilbert
authorEdwin Flores <eflores@mozilla.com>
Wed, 14 Sep 2016 11:02:37 +0100
changeset 313893 ee1070c230bd018b7970cf999328a960125cbd06
parent 313892 e51f95231d67144750a8248b9443ebc4ca2b01f0
child 313894 da51e6314ee51300286875170b26224c39ba2ff1
push id32267
push usercbook@mozilla.com
push dateWed, 14 Sep 2016 13:46:59 +0000
treeherderautoland@4b1f411b1ea6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgilbert
bugs1296996
milestone51.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 1296996 - Use ProducerRead{Acquire/Release} in ReadBuffer::Create - r=jgilbert
gfx/gl/GLScreenBuffer.cpp
--- a/gfx/gl/GLScreenBuffer.cpp
+++ b/gfx/gl/GLScreenBuffer.cpp
@@ -946,21 +946,21 @@ ReadBuffer::Create(GLContext* gl,
 
     GLenum err = localError.GetError();
     MOZ_ASSERT_IF(err != LOCAL_GL_NO_ERROR, err == LOCAL_GL_OUT_OF_MEMORY);
     if (err)
         return nullptr;
 
     const bool needsAcquire = !surf->IsProducerAcquired();
     if (needsAcquire) {
-        surf->ProducerAcquire();
+        surf->ProducerReadAcquire();
     }
     const bool isComplete = gl->IsFramebufferComplete(fb);
     if (needsAcquire) {
-        surf->ProducerRelease();
+        surf->ProducerReadRelease();
     }
 
     if (!isComplete)
         return nullptr;
 
     return Move(ret);
 }