Bug 1312988 - Separate the recycling allocators for gpu and cpu textures. r=nical
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user