Chromium Code Reviews| Index: content/common/gpu/client/gpu_memory_buffer_impl_win.cc |
| diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_win.cc b/content/common/gpu/client/gpu_memory_buffer_impl_win.cc |
| index 8da027bbb5b0bb475b10e31c3b8ed5fdfe4a708d..18efbc5892674841ff5208ca32f76e5c0c9141df 100644 |
| --- a/content/common/gpu/client/gpu_memory_buffer_impl_win.cc |
| +++ b/content/common/gpu/client/gpu_memory_buffer_impl_win.cc |
| @@ -32,15 +32,16 @@ void GpuMemoryBufferImpl::AllocateForChildProcess( |
| unsigned internalformat, |
| unsigned usage, |
| base::ProcessHandle child_process, |
| - gfx::GpuMemoryBufferHandle* handle) { |
| + const AllocationCallback& callback) { |
| + handle->type = gfx::EMPTY_BUFFER; |
|
reveman
2014/05/19 18:57:57
nit: think you forgot to remove this line
|
| if (GpuMemoryBufferImplShm::IsConfigurationSupported( |
| size, internalformat, usage)) { |
| GpuMemoryBufferImplShm::AllocateSharedMemoryForChildProcess( |
| - size, internalformat, child_process, handle); |
| + size, internalformat, child_process, callback); |
| return; |
| } |
| - handle->type = gfx::EMPTY_BUFFER; |
| + callback.Run(gfx::GpuMemoryBufferHandle()); |
| } |
| // static |