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..0e565f5ac2a9ce3935bac48f7488cc3c767e3c7d 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 gpu_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 = gpu_client_id; |
handle.type = gfx::OZONE_NATIVE_BUFFER; |
GpuMemoryBufferFactoryHost::GetInstance()->CreateGpuMemoryBuffer( |
handle, |