Bug 1487825 - Don't WaitForBufferOwnership if the surface is already Available r=jgilbert
authorImanol Fernandez <mortimergoro@gmail.com>
Sat, 01 Sep 2018 03:26:03 +0300
changeset 434362 1b09c0419d13
parent 434361 e2531be10419
child 434363 a0c3d80c5d22
push id107341
push userapavel@mozilla.com
push dateSat, 01 Sep 2018 00:27:18 +0000
treeherdermozilla-inbound@1b09c0419d13 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgilbert
bugs1487825
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 1487825 - Don't WaitForBufferOwnership if the surface is already Available r=jgilbert Reviewers: jgilbert Reviewed By: jgilbert Bug #: 1487825 Differential Revision: https://phabricator.services.mozilla.com/D4779
gfx/gl/SharedSurfaceEGL.cpp
--- a/gfx/gl/SharedSurfaceEGL.cpp
+++ b/gfx/gl/SharedSurfaceEGL.cpp
@@ -263,17 +263,16 @@ SharedSurface_SurfaceTexture::Commit()
     mGL->SwapBuffers();
     UnlockProdImpl();
     mSurface->SetAvailable(false);
 }
 
 void
 SharedSurface_SurfaceTexture::WaitForBufferOwnership()
 {
-    MOZ_RELEASE_ASSERT(!mSurface->GetAvailable());
     mSurface->SetAvailable(true);
 }
 
 bool
 SharedSurface_SurfaceTexture::IsBufferAvailable() const {
     return mSurface->GetAvailable();
 }