| Index: content/child/child_gpu_memory_buffer_manager.cc
|
| diff --git a/content/child/child_gpu_memory_buffer_manager.cc b/content/child/child_gpu_memory_buffer_manager.cc
|
| index 9a7517d7b8d358bc235e59fe81da4e0764b26c06..1c7b67bcc5c6ce7a559869884432a6d1cd598fa6 100644
|
| --- a/content/child/child_gpu_memory_buffer_manager.cc
|
| +++ b/content/child/child_gpu_memory_buffer_manager.cc
|
| @@ -5,6 +5,7 @@
|
| #include "content/child/child_gpu_memory_buffer_manager.h"
|
|
|
| #include "content/common/child_process_messages.h"
|
| +#include "content/common/generic_shared_memory_id_generator.h"
|
| #include "content/common/gpu/client/gpu_memory_buffer_impl.h"
|
|
|
| namespace content {
|
| @@ -41,7 +42,8 @@ ChildGpuMemoryBufferManager::AllocateGpuMemoryBuffer(const gfx::Size& size,
|
|
|
| gfx::GpuMemoryBufferHandle handle;
|
| IPC::Message* message = new ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer(
|
| - size.width(), size.height(), format, usage, &handle);
|
| + content::GetNextGenericSharedMemoryId(), size.width(), size.height(),
|
| + format, usage, &handle);
|
| bool success = sender_->Send(message);
|
| if (!success || handle.is_null())
|
| return nullptr;
|
|
|