| Index: content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc
|
| diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc b/content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc
|
| index 4c1534db191be9824d9603454e1fd2e762f06936..bcbdd9f28fe6a87b1eedd13a19102cf8c9986fe2 100644
|
| --- a/content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc
|
| +++ b/content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc
|
| @@ -43,13 +43,13 @@ void GpuMemoryBufferImplSharedMemory::AllocateSharedMemoryForChildProcess(
|
| base::ProcessHandle child_process,
|
| const AllocationCallback& callback) {
|
| DCHECK(IsLayoutSupported(size, internalformat));
|
| - gfx::GpuMemoryBufferHandle handle;
|
| base::SharedMemory shared_memory;
|
| if (!shared_memory.CreateAnonymous(size.GetArea() *
|
| BytesPerPixel(internalformat))) {
|
| - handle.type = gfx::EMPTY_BUFFER;
|
| + callback.Run(gfx::GpuMemoryBufferHandle());
|
| return;
|
| }
|
| + gfx::GpuMemoryBufferHandle handle;
|
| handle.type = gfx::SHARED_MEMORY_BUFFER;
|
| shared_memory.GiveToProcess(child_process, &handle.handle);
|
| callback.Run(handle);
|
|
|