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..512170ae959b3b4b2815f86f5626b4fd2a5c6952 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_SetIOSurfaceManagerToken( |
+ BrowserIOSurfaceManager::GetInstance()->GetGpuProcessToken())); |
+#endif |
+ |
while (!queued_messages_.empty()) { |
Send(queued_messages_.front()); |
queued_messages_.pop(); |