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

Unified Diff: content/browser/gpu/gpu_data_manager_impl_private.h

Issue 1547793004: Make gpu black list work again on Linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move for loop post_init_tasks_ from Initialize to InitializeImpl. And add a cc unit test. Created 4 years, 10 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: content/browser/gpu/gpu_data_manager_impl_private.h
diff --git a/content/browser/gpu/gpu_data_manager_impl_private.h b/content/browser/gpu/gpu_data_manager_impl_private.h
index 8766b4d55514305447bb7bb649bf51e0ba2f3cfe..6c72bd72017d8f901d63993f3b57983e9462fabb 100644
--- a/content/browser/gpu/gpu_data_manager_impl_private.h
+++ b/content/browser/gpu/gpu_data_manager_impl_private.h
@@ -265,11 +265,18 @@ class CONTENT_EXPORT GpuDataManagerImplPrivate {
bool gpu_process_accessible_;
+ // True if Initialize() has been completed.
+ bool is_initialized;
Zhenyao Mo 2016/02/10 23:53:46 is_initialized_ ("_" in the end)
+
// True if all future Initialize calls should be ignored.
bool finalized_;
std::string disabled_extensions_;
+ // If one tries to call a member before initialization then it is defered
+ // until Initialize() is completed.
+ std::vector<base::Closure> post_init_tasks_;
+
DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate);
};

Powered by Google App Engine
This is Rietveld 408576698