Bug 1314194 - Make sure we don't recycle textures in the GPU process before they have finished being used. r=nical

This commit is contained in:
Matt Woodrow 2016-11-03 09:57:18 +13:00
parent 5375ddbb83
commit cc6c76aab2

View File

@ -30,9 +30,14 @@ public:
{
// Create the TextureClient immediately since the GPUVideoTextureData
// is responsible for deallocating the SurfaceDescriptor.
//
// Use the RECYCLE texture flag, since it's likely that our 'real'
// TextureData (in the decoder thread of the GPU process) is using
// it too, and we want to make sure we don't send the delete message
// until we've stopped being used on the compositor.
mTextureClient =
TextureClient::CreateWithData(new GPUVideoTextureData(aManager, aSD, aSize),
TextureFlags::DEFAULT,
TextureFlags::RECYCLE,
ImageBridgeChild::GetSingleton().get());
}