Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1050)

Unified Diff: content/common/child_process_host_impl.cc

Issue 2514153002: content: Remove some unused code. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/child_process_host_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « content/common/child_process_host_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698