Index: gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.cc |
diff --git a/gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.cc b/gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.cc |
index 2641b8bfa1635e262214f998f685d376ddcc5bc0..910cbe9b4a2212869c9ce23649738858139a1aa3 100644 |
--- a/gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.cc |
+++ b/gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.cc |
@@ -62,8 +62,7 @@ gfx::GpuMemoryBufferHandle |
GpuMemoryBufferImplSharedMemory::AllocateForChildProcess( |
gfx::GpuMemoryBufferId id, |
const gfx::Size& size, |
- gfx::BufferFormat format, |
- base::ProcessHandle child_process) { |
+ gfx::BufferFormat format) { |
size_t buffer_size = 0u; |
if (!gfx::BufferSizeForBufferFormatChecked(size, format, &buffer_size)) |
return gfx::GpuMemoryBufferHandle(); |
@@ -78,7 +77,7 @@ GpuMemoryBufferImplSharedMemory::AllocateForChildProcess( |
handle.offset = 0; |
handle.stride = static_cast<int32_t>( |
gfx::RowSizeForBufferFormat(size.width(), format, 0)); |
- shared_memory.GiveToProcess(child_process, &handle.handle); |
+ handle.handle = shared_memory.TakeHandle(); |
return handle; |
} |