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

Unified Diff: ui/ozone/platform/x11/ozone_platform_x11.cc

Issue 2629983002: Fix the MessageLoop type in case more than one ozone platform is built (Closed)
Patch Set: addressed kbr's feedback Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/gpu/gpu_main.cc ('k') | ui/ozone/public/ozone_platform.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/x11/ozone_platform_x11.cc
diff --git a/ui/ozone/platform/x11/ozone_platform_x11.cc b/ui/ozone/platform/x11/ozone_platform_x11.cc
index 6db5b67b1b99ea898677884c378241b7311c4086..09bb43d6fb7c492710889be7f594222a7e4912d2 100644
--- a/ui/ozone/platform/x11/ozone_platform_x11.cc
+++ b/ui/ozone/platform/x11/ozone_platform_x11.cc
@@ -104,6 +104,12 @@ class OzonePlatformX11 : public OzonePlatform {
surface_factory_ozone_.reset(new X11SurfaceFactory());
}
+ base::MessageLoop::Type GetMessageLoopTypeForGpu() override {
+ // When Ozone X11 backend is running use an UI loop to grab Expose events.
+ // See GLSurfaceGLX and https://crbug.com/326995.
+ return base::MessageLoop::TYPE_UI;
+ }
+
private:
// Objects in the browser process.
std::unique_ptr<X11WindowManagerOzone> window_manager_;
« no previous file with comments | « services/ui/gpu/gpu_main.cc ('k') | ui/ozone/public/ozone_platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698