mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 12:50:09 +00:00
Bug 1354031 - Add IPC open check to TextureClientRecycleAllocator::CreateOrRecycle() r=mattwoodrow
This commit is contained in:
parent
765003669c
commit
44c4c93a0a
@ -180,8 +180,10 @@ TextureClientRecycleAllocator::CreateOrRecycle(ITextureClientAllocationHelper& a
|
||||
if (!mPooledClients.empty()) {
|
||||
textureHolder = mPooledClients.top();
|
||||
mPooledClients.pop();
|
||||
// If a pooled TextureClient is not compatible, release it.
|
||||
if (!aHelper.IsCompatible(textureHolder->GetTextureClient())) {
|
||||
// If the texture's allocator is not open or a pooled TextureClient is
|
||||
// not compatible, release it.
|
||||
if (!textureHolder->GetTextureClient()->GetAllocator()->IPCOpen() ||
|
||||
!aHelper.IsCompatible(textureHolder->GetTextureClient())) {
|
||||
// Release TextureClient.
|
||||
RefPtr<Runnable> task = new TextureClientReleaseTask(textureHolder->GetTextureClient());
|
||||
textureHolder->ClearTextureClient();
|
||||
|
Loading…
x
Reference in New Issue
Block a user