Chromium Code Reviews| 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 8c3a201cc673bc620b7a84c66dc58eebcfd58c06..ff47de955c4d71c4347c933c63edf7a846e6d53b 100644 |
| --- a/content/browser/gpu/gpu_process_host.cc |
| +++ b/content/browser/gpu/gpu_process_host.cc |
| @@ -565,10 +565,9 @@ bool GpuProcessHost::Init() { |
| DCHECK(!mojo_child_connection_); |
| mojo_child_connection_.reset(new MojoChildConnection( |
| - kGpuMojoApplicationName, |
| - "", |
| - child_token_, |
| - MojoShellContext::GetConnectorForIOThread())); |
| + kGpuMojoApplicationName, "", child_token_, |
| + MojoShellContext::GetConnectorForIOThread(), |
| + BrowserThread::GetTaskRunnerForThread(BrowserThread::IO))); |
|
piman
2016/07/09 00:33:17
FYI, this is already on the IO thread. This change
|
| gpu::GpuPreferences gpu_preferences = GetGpuPreferencesFromCommandLine(); |
| if (in_process_) { |
| @@ -939,11 +938,11 @@ void GpuProcessHost::OnProcessCrashed(int exit_code) { |
| } |
| shell::InterfaceRegistry* GpuProcessHost::GetInterfaceRegistry() { |
| - return mojo_child_connection_->connection()->GetInterfaceRegistry(); |
| + return mojo_child_connection_->GetInterfaceRegistry(); |
| } |
| shell::InterfaceProvider* GpuProcessHost::GetRemoteInterfaces() { |
| - return mojo_child_connection_->connection()->GetRemoteInterfaces(); |
| + return mojo_child_connection_->GetRemoteInterfaces(); |
| } |
| GpuProcessHost::GpuProcessKind GpuProcessHost::kind() { |