| Index: content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.cc
|
| diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.cc b/content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.cc
|
| index 399e6c2c9157b5a1ac86851a1313722add54d30c..62e722de8e6de384c7a11753d8d786162894e0f0 100644
|
| --- a/content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.cc
|
| +++ b/content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.cc
|
| @@ -39,12 +39,11 @@ void GpuMemoryBufferImplOzoneNativeBuffer::Create(
|
| const gfx::Size& size,
|
| unsigned internalformat,
|
| unsigned usage,
|
| + int client_id,
|
| const CreationCallback& callback) {
|
| gfx::GpuMemoryBufferHandle handle;
|
| handle.global_id.primary_id = g_next_buffer_id.GetNext();
|
| - // This code makes an assumption that client_id for GPU channel using this
|
| - // buffer is zero.
|
| - handle.global_id.secondary_id = 0;
|
| + handle.global_id.secondary_id = client_id;
|
| handle.type = gfx::OZONE_NATIVE_BUFFER;
|
| GpuMemoryBufferFactoryHost::GetInstance()->CreateGpuMemoryBuffer(
|
| handle,
|
| @@ -59,11 +58,11 @@ void GpuMemoryBufferImplOzoneNativeBuffer::AllocateOzoneNativeBufferForChildId(
|
| const gfx::Size& size,
|
| unsigned internalformat,
|
| unsigned usage,
|
| - int child_id,
|
| + int child_client_id,
|
| const AllocationCallback& callback) {
|
| gfx::GpuMemoryBufferHandle handle;
|
| handle.global_id.primary_id = g_next_buffer_id.GetNext();
|
| - handle.global_id.secondary_id = child_id;
|
| + handle.global_id.secondary_id = child_client_id;
|
| handle.type = gfx::OZONE_NATIVE_BUFFER;
|
| GpuMemoryBufferFactoryHost::GetInstance()->CreateGpuMemoryBuffer(
|
| handle,
|
|
|