Bug 1312988 - Separate the recycling allocators for gpu and cpu textures. r=nical

This commit is contained in:
Sotaro Ikeda
2016-11-14 10:09:39 +01:00
parent c47651215f
commit 21e7de124c
3 changed files with 19 additions and 8 deletions

View File

@@ -775,7 +775,7 @@ PluginInstanceParent::RecvShowDirectBitmap(Shmem&& buffer,
}
// Allocate a texture for the compositor.
RefPtr<TextureClientRecycleAllocator> allocator = mParent->EnsureTextureAllocator();
RefPtr<TextureClientRecycleAllocator> allocator = mParent->EnsureTextureAllocatorForDirectBitmap();
RefPtr<TextureClient> texture = allocator->CreateOrRecycle(
format, size, BackendSelector::Content,
TextureFlags::NO_FLAGS,
@@ -841,7 +841,7 @@ PluginInstanceParent::RecvShowDirectDXGISurface(const WindowsHandle& handle,
return IPC_FAIL_NO_REASON(this);
}
RefPtr<TextureClientRecycleAllocator> allocator = mParent->EnsureTextureAllocator();
RefPtr<TextureClientRecycleAllocator> allocator = mParent->EnsureTextureAllocatorForDXGISurface();
RefPtr<TextureClient> texture = allocator->CreateOrRecycle(
surface->GetFormat(), surface->GetSize(),
BackendSelector::Content,