mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 08:15:31 +00:00
Bug 892285 - Only unlock gralloc surfaces if they were locked, r=bas
This commit is contained in:
parent
1c6a972598
commit
a089db32c4
@ -123,10 +123,11 @@ DeprecatedTextureClientShmem::GetSurface()
|
||||
void
|
||||
DeprecatedTextureClientShmem::Unlock()
|
||||
{
|
||||
mSurface = nullptr;
|
||||
if (mSurface) {
|
||||
mSurface = nullptr;
|
||||
ShadowLayerForwarder::CloseDescriptor(mDescriptor);
|
||||
}
|
||||
mSurfaceAsImage = nullptr;
|
||||
|
||||
ShadowLayerForwarder::CloseDescriptor(mDescriptor);
|
||||
}
|
||||
|
||||
gfxImageSurface*
|
||||
|
Loading…
Reference in New Issue
Block a user