Index: content/common/gpu/client/gpu_memory_buffer_impl_mac.cc |
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_mac.cc b/content/common/gpu/client/gpu_memory_buffer_impl_mac.cc |
index 35831b54ca4d576cdab55c121fa9de816871bb0d..e72cea4b51f136725fd0de787881a60c1e69b410 100644 |
--- a/content/common/gpu/client/gpu_memory_buffer_impl_mac.cc |
+++ b/content/common/gpu/client/gpu_memory_buffer_impl_mac.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(); |
} |
// static |