mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
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:
parent
5375ddbb83
commit
cc6c76aab2
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user