| Index: content/common/child_process_host_impl.cc
|
| diff --git a/content/common/child_process_host_impl.cc b/content/common/child_process_host_impl.cc
|
| index 60b5a05cfcbe54584ba32e5e84f490ece520e1ba..c12dc45415d1ee0da28538a28e8bdf5a37f524f1 100644
|
| --- a/content/common/child_process_host_impl.cc
|
| +++ b/content/common/child_process_host_impl.cc
|
| @@ -26,7 +26,6 @@
|
| #include "content/public/common/child_process_host_delegate.h"
|
| #include "content/public/common/content_paths.h"
|
| #include "content/public/common/content_switches.h"
|
| -#include "gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.h"
|
| #include "ipc/ipc.mojom.h"
|
| #include "ipc/ipc_channel.h"
|
| #include "ipc/ipc_channel_mojo.h"
|
| @@ -243,13 +242,6 @@ bool ChildProcessHostImpl::OnMessageReceived(const IPC::Message& msg) {
|
| IPC_BEGIN_MESSAGE_MAP(ChildProcessHostImpl, msg)
|
| IPC_MESSAGE_HANDLER(ChildProcessHostMsg_ShutdownRequest,
|
| OnShutdownRequest)
|
| - // NB: The SyncAllocateGpuMemoryBuffer and DeletedGpuMemoryBuffer IPCs are
|
| - // handled here for non-renderer child processes. For renderer processes,
|
| - // they are handled in RenderMessageFilter.
|
| - IPC_MESSAGE_HANDLER(ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer,
|
| - OnAllocateGpuMemoryBuffer)
|
| - IPC_MESSAGE_HANDLER(ChildProcessHostMsg_DeletedGpuMemoryBuffer,
|
| - OnDeletedGpuMemoryBuffer)
|
| IPC_MESSAGE_UNHANDLED(handled = false)
|
| IPC_END_MESSAGE_MAP()
|
|
|
| @@ -297,29 +289,4 @@ void ChildProcessHostImpl::OnShutdownRequest() {
|
| Send(new ChildProcessMsg_Shutdown());
|
| }
|
|
|
| -void ChildProcessHostImpl::OnAllocateGpuMemoryBuffer(
|
| - gfx::GpuMemoryBufferId id,
|
| - uint32_t width,
|
| - uint32_t height,
|
| - gfx::BufferFormat format,
|
| - gfx::BufferUsage usage,
|
| - gfx::GpuMemoryBufferHandle* handle) {
|
| - // TODO(reveman): Add support for other types of GpuMemoryBuffers.
|
| -
|
| - // AllocateGpuMemoryBuffer() will check if |width| and |height| are valid
|
| - // and handle failure in a controlled way when not. We just need to make
|
| - // sure |usage| is supported here.
|
| - if (gpu::GpuMemoryBufferImplSharedMemory::IsUsageSupported(usage)) {
|
| - *handle = gpu::GpuMemoryBufferImplSharedMemory::AllocateGpuMemoryBuffer(
|
| - id, gfx::Size(width, height), format);
|
| - }
|
| -}
|
| -
|
| -void ChildProcessHostImpl::OnDeletedGpuMemoryBuffer(
|
| - gfx::GpuMemoryBufferId id,
|
| - const gpu::SyncToken& sync_token) {
|
| - // Note: Nothing to do here as ownership of shared memory backed
|
| - // GpuMemoryBuffers is passed with IPC.
|
| -}
|
| -
|
| } // namespace content
|
|
|