Bug 1142071 - Re-add WaitForBufferOwnership() r=jgilbert

This commit is contained in:
Sotaro Ikeda 2015-03-11 14:10:24 -07:00
parent 33a28f8360
commit 8d28b701c8

View File

@ -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));
}