| Index: gpu/ipc/client/command_buffer_proxy_impl.cc
|
| diff --git a/gpu/ipc/client/command_buffer_proxy_impl.cc b/gpu/ipc/client/command_buffer_proxy_impl.cc
|
| index 00040507432abe97255f601f4ddec58ec1043325..4564553ed21f9c799d0885bd84302955594752e9 100644
|
| --- a/gpu/ipc/client/command_buffer_proxy_impl.cc
|
| +++ b/gpu/ipc/client/command_buffer_proxy_impl.cc
|
| @@ -462,10 +462,9 @@ int32_t CommandBufferProxyImpl::CreateImage(ClientBuffer buffer,
|
| // This handle is owned by the GPU process and must be passed to it or it
|
| // will leak. In otherwords, do not early out on error between here and the
|
| // sending of the CreateImage IPC below.
|
| - bool requires_sync_token = false;
|
| gfx::GpuMemoryBufferHandle handle =
|
| - channel_->ShareGpuMemoryBufferToGpuProcess(gpu_memory_buffer->GetHandle(),
|
| - &requires_sync_token);
|
| + gfx::CloneHandleForIPC(gpu_memory_buffer->GetHandle());
|
| + bool requires_sync_token = handle.type == gfx::IO_SURFACE_BUFFER;
|
|
|
| uint64_t image_fence_sync = 0;
|
| if (requires_sync_token) {
|
|
|