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

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

Issue 2654993004: Move GPU blacklist calculation to GPU proc (Closed)
Patch Set: fix win clang build Created 3 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
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl.cc ('k') | content/browser/gpu/gpu_data_manager_impl_private.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..936a6d7d73372877bd326117bdf38d06b4815025 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 UpdateGpuFeatureInfo(const gpu::GpuFeatureInfo& gpu_feature_info);
void UpdateVideoMemoryUsageStats(
const gpu::VideoMemoryUsageStats& video_memory_usage_stats);
@@ -231,6 +233,8 @@ class CONTENT_EXPORT GpuDataManagerImplPrivate {
std::set<int> blacklisted_features_;
std::set<int> preliminary_blacklisted_features_;
+ // Eventually |blacklisted_features_| should be folded in to this.
+ gpu::GpuFeatureInfo gpu_feature_info_;
std::set<int> gpu_driver_bugs_;
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl.cc ('k') | content/browser/gpu/gpu_data_manager_impl_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698