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

Unified Diff: content/common/child_process_messages.h

Issue 1137453002: content: Pass IOSurface references using Mach IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: static_assert Created 5 years, 7 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_impl.cc ('k') | content/common/gpu/client/gpu_memory_buffer_impl_io_surface.cc » ('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 3f37fbfd1e7a159335eb363c6e7a9a2fa6fa84a9..2db9b33db7ebf051f71471050f828fd7c80a1d6d 100644
--- a/content/common/child_process_messages.h
+++ b/content/common/child_process_messages.h
@@ -17,6 +17,10 @@
#include "ipc/ipc_message_macros.h"
#include "ui/gfx/gpu_memory_buffer.h"
+#if defined(OS_MACOSX)
+#include "content/common/mac/io_surface_manager_token.h"
+#endif
+
IPC_ENUM_TRAITS_MAX_VALUE(tracked_objects::ThreadData::Status,
tracked_objects::ThreadData::STATUS_LAST)
@@ -63,9 +67,6 @@ IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferHandle)
IPC_STRUCT_TRAITS_MEMBER(id)
IPC_STRUCT_TRAITS_MEMBER(type)
IPC_STRUCT_TRAITS_MEMBER(handle)
-#if defined(OS_MACOSX)
- IPC_STRUCT_TRAITS_MEMBER(io_surface_id)
-#endif
IPC_STRUCT_TRAITS_END()
IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuMemoryBuffer::Format,
@@ -119,6 +120,13 @@ IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetProcessBackgrounded,
IPC_MESSAGE_CONTROL0(ChildProcessMsg_GetTcmallocStats)
#endif
+#if defined(OS_MACOSX)
+// Sent to child processes to tell them what token to use when registering
+// and/or acquiring IOSurfaces.
+IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetIOSurfaceManagerToken,
+ content::IOSurfaceManagerToken /* token */)
+#endif
+
////////////////////////////////////////////////////////////////////////////////
// Messages sent from the child process to the browser.
« no previous file with comments | « content/child/child_thread_impl.cc ('k') | content/common/gpu/client/gpu_memory_buffer_impl_io_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698