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

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

Issue 2654993004: Move GPU blacklist calculation to GPU proc (Closed)
Patch Set: cleanup Created 3 years, 11 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 c00d02dc1d413a72a2e08b40263ba29344e36983..604d6c78dae80fc13a4c8a749279d61e77226f2b 100644
--- a/content/browser/gpu/gpu_data_manager_impl_private.h
+++ b/content/browser/gpu/gpu_data_manager_impl_private.h
@@ -43,6 +43,7 @@ class CONTENT_EXPORT GpuDataManagerImplPrivate {
const std::string& gpu_blacklist_json,
const gpu::GPUInfo& gpu_info);
bool IsFeatureBlacklisted(int feature) const;
+ bool IsFeatureEnabled(int feature) const;
bool IsDriverBugWorkaroundActive(int feature) const;
gpu::GPUInfo GetGPUInfo() const;
void GetGpuProcessHandles(
@@ -69,6 +70,7 @@ class CONTENT_EXPORT GpuDataManagerImplPrivate {
void Initialize();
void UpdateGpuInfo(const gpu::GPUInfo& gpu_info);
+ void UpdateGpuFeatureStatus(const gpu::GPUFeatureStatus& gpu_feature_status);
void UpdateVideoMemoryUsageStats(
const gpu::VideoMemoryUsageStats& video_memory_usage_stats);
@@ -231,6 +233,7 @@ class CONTENT_EXPORT GpuDataManagerImplPrivate {
std::set<int> blacklisted_features_;
std::set<int> preliminary_blacklisted_features_;
+ std::set<int> enabled_features_;
std::set<int> gpu_driver_bugs_;

Powered by Google App Engine
This is Rietveld 408576698