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

--HG--
extra : rebase_source : 19399c7074aa370e52c57ec2076d236aaba8f763
extra : histedit_source : ba4fbf696d726006f4e7b61fc5fa1d5bcd3bf80d
This commit is contained in:
Imanol Fernandez 2018-09-01 03:26:03 +03:00
parent f8996dd01f
commit e3fb802a4a

View File

@ -268,7 +268,6 @@ SharedSurface_SurfaceTexture::Commit()
void
SharedSurface_SurfaceTexture::WaitForBufferOwnership()
{
MOZ_RELEASE_ASSERT(!mSurface->GetAvailable());
mSurface->SetAvailable(true);
}