Chromium Code Reviews| Index: content/common/gpu/client/gpu_memory_buffer_impl_android.cc |
| diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_android.cc b/content/common/gpu/client/gpu_memory_buffer_impl_android.cc |
| index a85654226ab1ba8908231bc9eb5d5b827faf1d84..482b4b97eac8ef671c47564f1154ab0254a54990 100644 |
| --- a/content/common/gpu/client/gpu_memory_buffer_impl_android.cc |
| +++ b/content/common/gpu/client/gpu_memory_buffer_impl_android.cc |
| @@ -60,7 +60,24 @@ 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::SURFACE_TEXTURE_BUFFER: |
| + if (id.secondary_id != child_client_id) { |
| + LOG(ERROR) |
| + << "Child attempting to delete GpuMemoryBuffer it does not own"; |
| + } else { |
| + GpuMemoryBufferImplSurfaceTexture::DeletedByChildProcess(id, |
| + sync_point); |
| + } |
| + break; |
| + default: |
| + LOG(ERROR) << "Unexpected GpuMemoryBufferType"; |
|
reveman
2014/11/04 00:16:12
NOTREACHED() as this shouldn't be able to happen.
|
| + } |
| } |
| // static |