Index: chrome/renderer/gpu_channel_host.cc |
=================================================================== |
--- chrome/renderer/gpu_channel_host.cc (revision 75655) |
+++ chrome/renderer/gpu_channel_host.cc (working copy) |
@@ -17,7 +17,9 @@ |
GpuChannelHost::~GpuChannelHost() { |
} |
-void GpuChannelHost::Connect(const IPC::ChannelHandle& channel_handle) { |
+void GpuChannelHost::Connect( |
+ const IPC::ChannelHandle& channel_handle, |
+ base::ProcessHandle gpu_renderer_process) { |
// Open a channel to the GPU process. |
channel_.reset(new IPC::SyncChannel( |
channel_handle, IPC::Channel::MODE_CLIENT, this, |
@@ -28,6 +30,10 @@ |
// and receives the hello message from the GPU process. The messages get |
// cached. |
state_ = kConnected; |
+ |
+ // Notify the GPU process of out process handle. This gives it the ability |
Ken Russell (switch to Gerrit)
2011/02/24 19:48:47
out -> our
|
+ // to map renderer handles into the GPU process. |
+ Send(new GpuChannelMsg_Initialize(gpu_renderer_process)); |
} |
void GpuChannelHost::set_gpu_info(const GPUInfo& gpu_info) { |