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

Unified Diff: ui/ozone/public/ozone_platform.h

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 side-by-side diff with in-line comments
Download patch
Index: ui/ozone/public/ozone_platform.h
diff --git a/ui/ozone/public/ozone_platform.h b/ui/ozone/public/ozone_platform.h
index 236924f01591b3a53d0c52d6959e7854c9f8483f..006e69691dd7c2ee795c756816059847fb26c0a2 100644
--- a/ui/ozone/public/ozone_platform.h
+++ b/ui/ozone/public/ozone_platform.h
@@ -8,6 +8,7 @@
#include <memory>
#include "base/macros.h"
+#include "base/message_loop/message_loop.h"
#include "ui/ozone/ozone_export.h"
namespace display {
@@ -92,6 +93,10 @@ class OZONE_EXPORT OzonePlatform {
static OzonePlatform* GetInstance();
+ // Returns the message loop type required for OzonePlatform instance that
+ // will be initialized.
+ static base::MessageLoop::Type GetMessageLoopType();
sadrul 2017/01/31 17:40:09 Also, change this to GetMessageLoopTypeForGpu()?
tonikitoo 2017/02/07 16:18:37 Done.
+
// Factory getters to override in subclasses. The returned objects will be
// injected into the appropriate layer at startup. Subclasses should not
// inject these objects themselves. Ownership is retained by OzonePlatform.

Powered by Google App Engine
This is Rietveld 408576698