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

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

Issue 643373002: Use UI message loop for in process GPU thread on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 35019673a3cdb2b3b90ccdba66e1295826b81e99..bb8aaa8ad530effc38e8bc7703d6770090a8831a 100644
--- a/content/browser/gpu/gpu_process_host.cc
+++ b/content/browser/gpu/gpu_process_host.cc
@@ -512,7 +512,12 @@ bool GpuProcessHost::Init() {
gpu_data_manager->AppendGpuCommandLine(command_line);
in_process_gpu_thread_.reset(g_gpu_main_thread_factory(channel_id));
- in_process_gpu_thread_->Start();
+ base::Thread::Options options;
+#if defined(OS_WIN)
+ // WGL needs to create its own window and pump messages on it.
+ options.message_loop_type = base::MessageLoop::TYPE_UI;
Ken Russell (switch to Gerrit) 2014/10/11 03:04:32 Is there any benefit to checking if --use-gl=deskt
+#endif
+ in_process_gpu_thread_->StartWithOptions(options);
OnProcessLaunched(); // Fake a callback that the process is ready.
} else if (!LaunchGpuProcess(channel_id)) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698