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

Unified Diff: ui/ozone/ozone_platform.h

Issue 291473002: ozone: Initialize a subsystem only if necessary. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge-r270817 Created 6 years, 7 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 | « ui/gl/gl_implementation_ozone.cc ('k') | ui/ozone/ozone_platform.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/ozone_platform.h
diff --git a/ui/ozone/ozone_platform.h b/ui/ozone/ozone_platform.h
index 536ff0ed8e26e1182acde7e698293f7533f0e663..7a9a66742141002b11fb3829efc072d614decbe1 100644
--- a/ui/ozone/ozone_platform.h
+++ b/ui/ozone/ozone_platform.h
@@ -38,9 +38,12 @@ class OZONE_EXPORT OzonePlatform {
OzonePlatform();
virtual ~OzonePlatform();
- // Initialize the platform. Once complete, SurfaceFactoryOzone &
- // EventFactoryOzone will be set.
- static void Initialize();
+ // Initializes the subsystems/resources necessary for the UI process (e.g.
+ // events, surface, etc.)
+ static void InitializeForUI();
+
+ // Initializes the subsystems/resources necessary for the GPU process.
+ static void InitializeForGPU();
static OzonePlatform* GetInstance();
@@ -58,6 +61,11 @@ class OZONE_EXPORT OzonePlatform {
#endif
private:
+ virtual void InitializeUI() = 0;
+ virtual void InitializeGPU() = 0;
+
+ static void CreateInstance();
+
static OzonePlatform* instance_;
DISALLOW_COPY_AND_ASSIGN(OzonePlatform);
« no previous file with comments | « ui/gl/gl_implementation_ozone.cc ('k') | ui/ozone/ozone_platform.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698