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

Unified Diff: services/ui/gpu/gpu_main.cc

Issue 2560303002: mus: Remove use of gpu message-pump. (Closed)
Patch Set: . Created 4 years 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: services/ui/gpu/gpu_main.cc
diff --git a/services/ui/gpu/gpu_main.cc b/services/ui/gpu/gpu_main.cc
index 72d615fd2079c8909f6f986ba3977f0b4aa0027b..948106e777e46a0f0c2e50de3085ed6a2485fc91 100644
--- a/services/ui/gpu/gpu_main.cc
+++ b/services/ui/gpu/gpu_main.cc
@@ -15,14 +15,6 @@
namespace {
-#if defined(OS_WIN)
-std::unique_ptr<base::MessagePump> CreateMessagePumpWin() {
- base::MessagePumpForGpu::InitFactory();
- return base::MessageLoop::CreateMessagePumpForType(
- base::MessageLoop::TYPE_UI);
-}
-#endif // defined(OS_WIN)
-
#if defined(USE_X11)
std::unique_ptr<base::MessagePump> CreateMessagePumpX11() {
// TODO(sad): This should create a TYPE_UI message pump, and create a
@@ -50,7 +42,7 @@ GpuMain::GpuMain(mojom::GpuMainRequest request)
base::Thread::Options thread_options;
#if defined(OS_WIN)
- thread_options.message_pump_factory = base::Bind(&CreateMessagePumpWin);
+ thread_options.message_loop_type = base::MessageLoop::TYPE_DEFAULT;
#elif defined(USE_X11)
thread_options.message_pump_factory = base::Bind(&CreateMessagePumpX11);
#elif defined(USE_OZONE)
« 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