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

Side by Side Diff: ui/ozone/public/ozone_platform.cc

Issue 2629983002: Fix the MessageLoop type in case more than one ozone platform is built (Closed)
Patch Set: added a comment explain the static method Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/logging.h" 6 #include "base/logging.h"
7 #include "base/trace_event/trace_event.h" 7 #include "base/trace_event/trace_event.h"
8 #include "ui/events/devices/device_data_manager.h" 8 #include "ui/events/devices/device_data_manager.h"
9 #include "ui/ozone/platform_object.h" 9 #include "ui/ozone/platform_object.h"
10 #include "ui/ozone/platform_selection.h" 10 #include "ui/ozone/platform_selection.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 void OzonePlatform::InitializeGPU(const InitParams& args) { 97 void OzonePlatform::InitializeGPU(const InitParams& args) {
98 InitializeGPU(); 98 InitializeGPU();
99 } 99 }
100 100
101 IPC::MessageFilter* OzonePlatform::GetGpuMessageFilter() { 101 IPC::MessageFilter* OzonePlatform::GetGpuMessageFilter() {
102 return nullptr; 102 return nullptr;
103 } 103 }
104 void OzonePlatform::AddInterfaces( 104 void OzonePlatform::AddInterfaces(
105 service_manager::InterfaceRegistry* registry) {} 105 service_manager::InterfaceRegistry* registry) {}
106 106
107 base::MessageLoop::Type OzonePlatform::GetMessageLoopType() {
108 // If we are be running Ozone X11 we need a UI loop to grab Expose events.
109 // See GLSurfaceGLX and https://crbug.com/326995.
110 return (!strcmp(GetOzonePlatformName(), "x11"))
spang 2017/01/19 16:31:55 Don't use the platform name. Use a virtual functio
kylechar 2017/01/19 16:59:50 Right, that's a better idea. We can't run OzonePla
tonikitoo 2017/02/07 16:18:37 Done.
111 ? base::MessageLoop::TYPE_UI
112 : base::MessageLoop::TYPE_DEFAULT;
113 }
114
107 } // namespace ui 115 } // namespace ui
OLDNEW
« ui/ozone/public/ozone_platform.h ('K') | « ui/ozone/public/ozone_platform.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698