| 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..d59c1094c3bef24808f4311c4d78caa7eb0421f9 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,18 @@ void GpuMemoryBufferImpl::AllocateForChildProcess(
|
| void GpuMemoryBufferImpl::DeletedByChildProcess(
|
| gfx::GpuMemoryBufferType type,
|
| const gfx::GpuMemoryBufferId& id,
|
| - base::ProcessHandle child_process) {
|
| + base::ProcessHandle child_process,
|
| + uint32_t sync_point) {
|
| + switch (type) {
|
| + case gfx::SHARED_MEMORY_BUFFER:
|
| + break;
|
| + case gfx::OZONE_NATIVE_BUFFER:
|
| + GpuMemoryBufferImplOzoneNativeBuffer::DeletedByChildProcess(id,
|
| + sync_point);
|
| + break;
|
| + default:
|
| + LOG(ERROR) << "Unexpected GpuMemoryBufferType";
|
| + }
|
| }
|
|
|
| // static
|
| @@ -81,4 +92,17 @@ scoped_ptr<GpuMemoryBufferImpl> GpuMemoryBufferImpl::CreateFromHandle(
|
| }
|
| }
|
|
|
| +// static
|
| +bool GpuMemoryBufferImpl::NeedsDestructionSyncPoint(
|
| + gfx::GpuMemoryBufferType type) {
|
| + switch (type) {
|
| + case gfx::SHARED_MEMORY_BUFFER:
|
| + return false;
|
| + case gfx::OZONE_NATIVE_BUFFER:
|
| + return true;
|
| + default:
|
| + return false;
|
| + }
|
| +}
|
| +
|
| } // namespace content
|
|
|