Chromium Code Reviews| Index: content/common/gpu/client/gpu_memory_buffer_impl_android.cc |
| diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_android.cc b/content/common/gpu/client/gpu_memory_buffer_impl_android.cc |
| index 0e31dc9b65f31dc140d00887a2928258e214dafa..8e44b98afdc2eed323b93966448e60f6e6f10f98 100644 |
| --- a/content/common/gpu/client/gpu_memory_buffer_impl_android.cc |
| +++ b/content/common/gpu/client/gpu_memory_buffer_impl_android.cc |
| @@ -33,15 +33,16 @@ void GpuMemoryBufferImpl::AllocateForChildProcess( |
| unsigned internalformat, |
| unsigned usage, |
| base::ProcessHandle child_process, |
| - gfx::GpuMemoryBufferHandle* handle) { |
| + gfx::GpuMemoryBufferHandle* handle, |
| + const base::Closure& allocate_callback) { |
| + handle->type = gfx::EMPTY_BUFFER; |
| if (GpuMemoryBufferImplShm::IsConfigurationSupported( |
| size, internalformat, usage)) { |
| GpuMemoryBufferImplShm::AllocateSharedMemoryForChildProcess( |
| size, internalformat, child_process, handle); |
| - return; |
| } |
| - handle->type = gfx::EMPTY_BUFFER; |
| + allocate_callback.Run(); |
|
reveman
2014/05/19 05:51:07
I think it'd be better to forward the responsibili
|
| } |
| // static |