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

Unified Diff: content/browser/gpu/gpu_process_host.cc

Issue 1137453002: content: Pass IOSurface references using Mach IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update comment 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
Index: content/browser/gpu/gpu_process_host.cc
diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc
index 2384a1b2cc24d135c3b99ef1ef0db40824a0a5fc..bebdaf3dc5ed5b2881f232e99d413cee7cbc17b7 100644
--- a/content/browser/gpu/gpu_process_host.cc
+++ b/content/browser/gpu/gpu_process_host.cc
@@ -60,6 +60,11 @@
#include "ui/gfx/x/x11_switches.h"
#endif
+#if defined(OS_MACOSX) && !defined(OS_IOS)
+#include "content/browser/browser_io_surface_manager_mac.h"
+#include "content/common/child_process_messages.h"
+#endif
+
namespace content {
bool GpuProcessHost::gpu_enabled_ = true;
@@ -589,6 +594,11 @@ bool GpuProcessHost::OnMessageReceived(const IPC::Message& message) {
void GpuProcessHost::OnChannelConnected(int32 peer_pid) {
TRACE_EVENT0("gpu", "GpuProcessHost::OnChannelConnected");
+#if defined(OS_MACOSX) && !defined(OS_IOS)
+ Send(new ChildProcessMsg_SetIOSurfaceManagerMailbox(
+ BrowserIOSurfaceManager::GetInstance()->GetGpuProcessMailbox()));
+#endif
+
while (!queued_messages_.empty()) {
Send(queued_messages_.front());
queued_messages_.pop();

Powered by Google App Engine
This is Rietveld 408576698