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 434388 1b09c0419d13
parent 434387 e2531be10419
child 434389 a0c3d80c5d22
push id34553
push usercsabou@mozilla.com
push dateSat, 01 Sep 2018 09:30:06 +0000
treeherdermozilla-central@2667224d61d0 [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();
 }