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

Unified Diff: ui/ozone/public/ozone_platform.h

Issue 1043233003: ozone: Add post message loop initialization hook (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: return without failing Created 5 years, 9 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/ozone/platform/test/ozone_platform_test.cc ('k') | ui/ozone/public/ozone_platform.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..14a8e2d428d2b87cae5f81e269621b728de86337 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;
static void CreateInstance();
« no previous file with comments | « ui/ozone/platform/test/ozone_platform_test.cc ('k') | ui/ozone/public/ozone_platform.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698