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

This commit is contained in:
Sotaro Ikeda 2015-03-11 14:10:24 -07:00
parent 45a7b8e3d3
commit 4fe0da6506

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