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

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: 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
Index: ui/ozone/ozone_platform.h
diff --git a/ui/ozone/ozone_platform.h b/ui/ozone/ozone_platform.h
index 536ff0ed8e26e1182acde7e698293f7533f0e663..48d29eb5e65d27f5eb84e28e55219401b2e602b8 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();

Powered by Google App Engine
This is Rietveld 408576698