Chromium Code Reviews| Index: content/common/gpu/client/gpu_memory_buffer_impl_mac.cc |
| diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_mac.cc b/content/common/gpu/client/gpu_memory_buffer_impl_mac.cc |
| index e0fe58da0e9ff250f638ef491408b9da9b1598df..d29ae5e6654c678607f2446e3b6b2f605f553a25 100644 |
| --- a/content/common/gpu/client/gpu_memory_buffer_impl_mac.cc |
| +++ b/content/common/gpu/client/gpu_memory_buffer_impl_mac.cc |
| @@ -57,7 +57,23 @@ void GpuMemoryBufferImpl::AllocateForChildProcess( |
| void GpuMemoryBufferImpl::DeletedByChildProcess( |
| gfx::GpuMemoryBufferType type, |
| const gfx::GpuMemoryBufferId& id, |
| - base::ProcessHandle child_process) { |
| + base::ProcessHandle child_process, |
| + int child_client_id, |
| + uint32 sync_point) { |
| + switch (type) { |
| + case gfx::SHARED_MEMORY_BUFFER: |
| + break; |
| + case gfx::IO_SURFACE_BUFFER: |
| + if (id.secondary_id != child_client_id) { |
| + LOG(ERROR) |
| + << "Child attempting to delete GpuMemoryBuffer it does not own"; |
| + } else { |
| + GpuMemoryBufferImplIOSurface::DeletedByChildProcess(id, sync_point); |
| + } |
| + break; |
| + default: |
| + LOG(ERROR) << "Unexpected GpuMemoryBufferType"; |
|
reveman
2014/11/04 00:16:13
NOTREACHED
|
| + } |
| } |
| // static |