Index: content/renderer/render_thread_impl.cc |
=================================================================== |
--- content/renderer/render_thread_impl.cc (revision 132251) |
+++ content/renderer/render_thread_impl.cc (working copy) |
@@ -909,15 +909,18 @@ |
// Ask the browser for the channel name. |
int client_id = 0; |
IPC::ChannelHandle channel_handle; |
+ base::ProcessHandle renderer_process_for_gpu; |
content::GPUInfo gpu_info; |
if (!Send(new GpuHostMsg_EstablishGpuChannel(cause_for_gpu_launch, |
&client_id, |
&channel_handle, |
+ &renderer_process_for_gpu, |
&gpu_info)) || |
+ channel_handle.name.empty() || |
#if defined(OS_POSIX) |
channel_handle.socket.fd == -1 || |
#endif |
- channel_handle.name.empty()) { |
+ renderer_process_for_gpu == base::kNullProcessHandle) { |
// Otherwise cancel the connection. |
gpu_channel_ = NULL; |
return NULL; |
@@ -928,7 +931,7 @@ |
content::GetContentClient()->SetGpuInfo(gpu_info); |
// Connect to the GPU process if a channel name was received. |
- gpu_channel_->Connect(channel_handle); |
+ gpu_channel_->Connect(channel_handle, renderer_process_for_gpu); |
return GetGpuChannel(); |
} |