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

Unified Diff: content/gpu/gpu_main.cc

Issue 2514033003: Switch main GPU thread to Default Message Pump (Closed)
Patch Set: Created 4 years, 1 month 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/gpu/gpu_main.cc
diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc
index f8887cec2a6a24643bc080832a327a74b719c725..51c2868899c077360575fbf89cab0518e99bc7a0 100644
--- a/content/gpu/gpu_main.cc
+++ b/content/gpu/gpu_main.cc
@@ -194,10 +194,9 @@ int GpuMain(const MainFunctionParams& parameters) {
logging::SetLogMessageHandler(GpuProcessLogMessageHandler);
#if defined(OS_WIN)
- // Use a UI message loop because ANGLE and the desktop GL platform can
- // create child windows to render to.
- base::MessagePumpForGpu::InitFactory();
- base::MessageLoop main_message_loop(base::MessageLoop::TYPE_UI);
+ // OK to use default non-UI message loop because all GPU windows run on
+ // dedicated thread.
+ base::MessageLoop main_message_loop(base::MessageLoop::TYPE_DEFAULT);
#elif defined(USE_X11)
// We need a UI loop so that we can grab the Expose events. See GLSurfaceGLX
// and https://crbug.com/326995.
« 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