| 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);
|
|
|