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..0e77f468d22d69f66008a601e8ecd685c9cd47ec 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,15 @@ void GpuMemoryBufferImpl::AllocateForChildProcess( |
unsigned internalformat, |
unsigned usage, |
base::ProcessHandle child_process, |
- gfx::GpuMemoryBufferHandle* handle) { |
+ const AllocationCallback& callback) { |
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 |