Index: content/common/gpu/client/gpu_memory_buffer_impl_ozone.cc |
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_ozone.cc b/content/common/gpu/client/gpu_memory_buffer_impl_ozone.cc |
index 7420444ac402fb68755b9931482bb9ca424b953c..58b26c7e27d29c7ff21100ee67ce59ffdab3ed82 100644 |
--- a/content/common/gpu/client/gpu_memory_buffer_impl_ozone.cc |
+++ b/content/common/gpu/client/gpu_memory_buffer_impl_ozone.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_t sync_point) { |
+ switch (type) { |
+ case gfx::SHARED_MEMORY_BUFFER: |
+ break; |
+ case gfx::OZONE_NATIVE_BUFFER: |
+ if (id.secondary_id != child_client_id) { |
+ LOG(ERROR) |
+ << "Child attempting to delete GpuMemoryBuffer it does not own"; |
+ } else { |
+ GpuMemoryBufferImplOzoneNativeBuffer::DeletedByChildProcess(id, |
+ sync_point); |
+ } |
+ break; |
+ default: |
+ NOTREACHED(); |
+ } |
} |
// static |