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

Unified Diff: content/common/child_process_messages.h

Issue 148243013: Add shared bitmap managers for browser and renderer processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months 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/child/child_thread.cc ('k') | content/common/host_shared_bitmap_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/child_process_messages.h
diff --git a/content/common/child_process_messages.h b/content/common/child_process_messages.h
index 5700c4884b31de9a862a89a3a885612f7e5ba3d2..f220891c9b8ecefca7b849f65038860b9063c8b0 100644
--- a/content/common/child_process_messages.h
+++ b/content/common/child_process_messages.h
@@ -11,6 +11,7 @@
#include "base/memory/shared_memory.h"
#include "base/tracked_objects.h"
#include "base/values.h"
+#include "cc/resources/shared_bitmap_manager.h"
#include "content/common/content_export.h"
#include "ipc/ipc_message_macros.h"
#include "ui/gfx/gpu_memory_buffer.h"
@@ -146,6 +147,23 @@ IPC_SYNC_MESSAGE_CONTROL1_1(ChildProcessHostMsg_SyncAllocateSharedMemory,
uint32 /* buffer size */,
base::SharedMemoryHandle)
+// Asks the browser to create a block of shared memory for the child process to
+// fill in and pass back to the browser.
+IPC_SYNC_MESSAGE_CONTROL2_1(ChildProcessHostMsg_SyncAllocateSharedBitmap,
+ uint32 /* buffer size */,
+ cc::SharedBitmapId,
+ base::SharedMemoryHandle)
+
+// Informs the browser that the child allocated a shared bitmap.
+IPC_MESSAGE_CONTROL3(ChildProcessHostMsg_AllocatedSharedBitmap,
+ uint32 /* buffer size */,
+ base::SharedMemoryHandle,
+ cc::SharedBitmapId)
+
+// Informs the browser that the child deleted a shared bitmap.
+IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedSharedBitmap,
+ cc::SharedBitmapId)
+
#if defined(USE_TCMALLOC)
// Reply to ChildProcessMsg_GetTcmallocStats.
IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TcmallocStats,
« no previous file with comments | « content/child/child_thread.cc ('k') | content/common/host_shared_bitmap_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698