Commit f5f241f9 authored by jbauman's avatar jbauman Committed by Commit bot

Use UI message loop for in process GPU thread on Windows

WGL needs to create a window and should pump its message loop, so use a UI message loop.

BUG=273220

Review URL: https://codereview.chromium.org/643373002

Cr-Commit-Position: refs/heads/master@{#299395}
parent 69ec4478
......@@ -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;
#endif
in_process_gpu_thread_->StartWithOptions(options);
OnProcessLaunched(); // Fake a callback that the process is ready.
} else if (!LaunchGpuProcess(channel_id)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment