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)) { |