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

Unified Diff: content/browser/renderer_host/render_message_filter.cc

Issue 2488913003: Replacing allocate bitmap IPC messages with a new Mojo interface. (Closed)
Patch Set: Clean-up 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
Index: content/browser/renderer_host/render_message_filter.cc
diff --git a/content/browser/renderer_host/render_message_filter.cc b/content/browser/renderer_host/render_message_filter.cc
index 78db5e2017cdbf8747b73a848798e8fdcbcf9c7c..de4ac3e2107bbc5ff9ba6034b4b47aa7f11f729f 100644
--- a/content/browser/renderer_host/render_message_filter.cc
+++ b/content/browser/renderer_host/render_message_filter.cc
@@ -189,8 +189,6 @@ bool RenderMessageFilter::OnMessageReceived(const IPC::Message& message) {
IPC_MESSAGE_HANDLER_DELAY_REPLY(
ChildProcessHostMsg_SyncAllocateSharedMemory, OnAllocateSharedMemory)
IPC_MESSAGE_HANDLER_DELAY_REPLY(
- ChildProcessHostMsg_SyncAllocateSharedBitmap, OnAllocateSharedBitmap)
- IPC_MESSAGE_HANDLER_DELAY_REPLY(
ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer,
OnAllocateGpuMemoryBuffer)
IPC_MESSAGE_HANDLER_DELAY_REPLY(ChildProcessHostMsg_EstablishGpuChannel,
@@ -199,10 +197,6 @@ bool RenderMessageFilter::OnMessageReceived(const IPC::Message& message) {
OnHasGpuProcess)
IPC_MESSAGE_HANDLER(ChildProcessHostMsg_DeletedGpuMemoryBuffer,
OnDeletedGpuMemoryBuffer)
- IPC_MESSAGE_HANDLER(ChildProcessHostMsg_AllocatedSharedBitmap,
- OnAllocatedSharedBitmap)
- IPC_MESSAGE_HANDLER(ChildProcessHostMsg_DeletedSharedBitmap,
- OnDeletedSharedBitmap)
IPC_MESSAGE_HANDLER_DELAY_REPLY(
ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory,
OnAllocateLockedDiscardableSharedMemory)
@@ -355,42 +349,6 @@ void RenderMessageFilter::OnAllocateSharedMemory(uint32_t buffer_size,
buffer_size, reply_msg));
}
-void RenderMessageFilter::AllocateSharedBitmapOnFileThread(
- uint32_t buffer_size,
- const cc::SharedBitmapId& id,
- IPC::Message* reply_msg) {
- base::SharedMemoryHandle handle;
- bitmap_manager_client_.AllocateSharedBitmapForChild(PeerHandle(), buffer_size,
- id, &handle);
- ChildProcessHostMsg_SyncAllocateSharedBitmap::WriteReplyParams(reply_msg,
- handle);
- Send(reply_msg);
-}
-
-void RenderMessageFilter::OnAllocateSharedBitmap(uint32_t buffer_size,
- const cc::SharedBitmapId& id,
- IPC::Message* reply_msg) {
- BrowserThread::PostTask(
- BrowserThread::FILE_USER_BLOCKING,
- FROM_HERE,
- base::Bind(&RenderMessageFilter::AllocateSharedBitmapOnFileThread,
- this,
- buffer_size,
- id,
- reply_msg));
-}
-
-void RenderMessageFilter::OnAllocatedSharedBitmap(
- size_t buffer_size,
- const base::SharedMemoryHandle& handle,
- const cc::SharedBitmapId& id) {
- bitmap_manager_client_.ChildAllocatedSharedBitmap(buffer_size, handle, id);
-}
-
-void RenderMessageFilter::OnDeletedSharedBitmap(const cc::SharedBitmapId& id) {
- bitmap_manager_client_.ChildDeletedSharedBitmap(id);
-}
-
void RenderMessageFilter::AllocateLockedDiscardableSharedMemoryOnFileThread(
uint32_t size,
discardable_memory::DiscardableSharedMemoryId id,

Powered by Google App Engine
This is Rietveld 408576698