Chromium Code Reviews| 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..021023a96844f8e771e71d32da47e18463fb5a78 100644 |
| --- a/gpu/ipc/client/command_buffer_proxy_impl.cc |
| +++ b/gpu/ipc/client/command_buffer_proxy_impl.cc |
| @@ -462,10 +462,11 @@ 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); |
| + channel_->IsLost() |
|
piman
2016/11/28 23:42:36
Actually this is not necessary anymore, since now
sadrul
2016/11/29 01:53:51
Oh cool. Thanks! Removed the IsLost() check from h
|
| + ? gfx::GpuMemoryBufferHandle() |
| + : gfx::CloneHandleForIPC(gpu_memory_buffer->GetHandle()); |
|
sadrul
2016/11/27 03:59:06
This may actually change behaviour. Right now, 'Is
|
| + bool requires_sync_token = handle.type == gfx::IO_SURFACE_BUFFER; |
| uint64_t image_fence_sync = 0; |
| if (requires_sync_token) { |