Chromium Code Reviews| 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. |