Index: ui/ozone/public/ozone_platform.h |
diff --git a/ui/ozone/public/ozone_platform.h b/ui/ozone/public/ozone_platform.h |
index d27709a94890b9979c9b14eb3fe4e4ddf3641de5..e833cd65f95e3a86c230fc3748322dfd45474b82 100644 |
--- a/ui/ozone/public/ozone_platform.h |
+++ b/ui/ozone/public/ozone_platform.h |
@@ -50,6 +50,12 @@ class OZONE_EXPORT OzonePlatform { |
// Initializes the subsystems/resources necessary for the GPU process. |
static void InitializeForGPU(); |
+ // Initializes the subsystems/resources necessary for the GPU process, after |
+ // the message loop is started. This is used mainly for initialization tasks |
+ // that need to take a reference to the UI thread MessageLoopProxy. |
+ // InitializeForGPU() necessarily needs to be called first. |
+ static void InitializeForGPUPostMainLoop(); |
+ |
static OzonePlatform* GetInstance(); |
// Factory getters to override in subclasses. The returned objects will be |
@@ -70,6 +76,7 @@ class OZONE_EXPORT OzonePlatform { |
private: |
virtual void InitializeUI() = 0; |
virtual void InitializeGPU() = 0; |
+ virtual void InitializeGPUPostMainLoop() = 0; |
spang
2015/03/31 20:58:49
Can you capitalize it as 'Gpu'. We could change th
vignatti (out of this project)
2015/04/01 16:26:11
Done.
|
static void CreateInstance(); |