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

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

Issue 2111353002: Move content's shell connections to the IO thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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 dc2707091adb658ea7ec34b7cd7860bf8a2a3404..8a43d7c8b99a223f30bdf341693c5d495cb5fa84 100644
--- a/content/browser/gpu/gpu_process_host.cc
+++ b/content/browser/gpu/gpu_process_host.cc
@@ -558,10 +558,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::GetMessageLoopProxyForThread(BrowserThread::IO)));
gpu::GpuPreferences gpu_preferences = GetGpuPreferencesFromCommandLine();
if (in_process_) {
@@ -932,11 +931,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() {

Powered by Google App Engine
This is Rietveld 408576698