diff options
Diffstat (limited to 'content/common/child_process_host_impl.cc')
-rw-r--r-- | content/common/child_process_host_impl.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/content/common/child_process_host_impl.cc b/content/common/child_process_host_impl.cc index fb058d3..a2f40d4 100644 --- a/content/common/child_process_host_impl.cc +++ b/content/common/child_process_host_impl.cc @@ -247,6 +247,8 @@ bool ChildProcessHostImpl::OnMessageReceived(const IPC::Message& msg) { OnShutdownRequest) IPC_MESSAGE_HANDLER(ChildProcessHostMsg_SyncAllocateSharedMemory, OnAllocateSharedMemory) + IPC_MESSAGE_HANDLER(ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer, + OnAllocateGpuMemoryBuffer) IPC_MESSAGE_UNHANDLED(handled = false) IPC_END_MESSAGE_MAP() @@ -293,4 +295,11 @@ void ChildProcessHostImpl::OnShutdownRequest() { Send(new ChildProcessMsg_Shutdown()); } +void ChildProcessHostImpl::OnAllocateGpuMemoryBuffer( + uint32 buffer_size, + gfx::GpuMemoryBufferHandle* handle) { + handle->type = gfx::SHARED_MEMORY_BUFFER; + AllocateSharedMemory(buffer_size, peer_handle_, &handle->handle); +} + } // namespace content |