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

Unified Diff: content/child/child_thread_impl.cc

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.h ('k') | content/common/child_process_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/child_thread_impl.cc
diff --git a/content/child/child_thread_impl.cc b/content/child/child_thread_impl.cc
index ca970ec4b94f45f4f3c8869647da0f937c632487..9f5b3154a3dca7c5bb6b6283308b02bf967341c8 100644
--- a/content/child/child_thread_impl.cc
+++ b/content/child/child_thread_impl.cc
@@ -69,6 +69,10 @@
#include "third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h"
#endif
+#if defined(OS_MACOSX)
+#include "content/child/child_io_surface_manager_mac.h"
+#endif
+
using tracked_objects::ThreadData;
namespace content {
@@ -578,6 +582,10 @@ bool ChildThreadImpl::OnMessageReceived(const IPC::Message& msg) {
#if defined(USE_TCMALLOC)
IPC_MESSAGE_HANDLER(ChildProcessMsg_GetTcmallocStats, OnGetTcmallocStats)
#endif
+#if defined(OS_MACOSX)
+ IPC_MESSAGE_HANDLER(ChildProcessMsg_SetIOSurfaceManagerToken,
+ OnSetIOSurfaceManagerToken)
+#endif
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
@@ -634,6 +642,13 @@ void ChildThreadImpl::OnGetTcmallocStats() {
}
#endif
+#if defined(OS_MACOSX)
+void ChildThreadImpl::OnSetIOSurfaceManagerToken(
+ const IOSurfaceManagerToken& token) {
+ ChildIOSurfaceManager::GetInstance()->set_token(token);
+}
+#endif
+
ChildThreadImpl* ChildThreadImpl::current() {
return g_lazy_tls.Pointer()->Get();
}
« no previous file with comments | « content/child/child_thread_impl.h ('k') | content/common/child_process_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698