mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 1142071 - Re-add WaitForBufferOwnership() r=jgilbert
This commit is contained in:
parent
9fb770d771
commit
114f04dcd9
@ -343,6 +343,10 @@ SurfaceFactory::NewShSurfHandle(const gfx::IntSize& size)
|
||||
if (!surf)
|
||||
return nullptr;
|
||||
|
||||
// Before next use, wait until SharedSurface's buffer
|
||||
// is no longer being used.
|
||||
surf->WaitForBufferOwnership();
|
||||
|
||||
return new ShSurfHandle(this, Move(surf));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user