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

Unified Diff: content/browser/gpu/gpu_data_manager_impl.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.h
diff --git a/content/browser/gpu/gpu_data_manager_impl.h b/content/browser/gpu/gpu_data_manager_impl.h
index efd4cf26c1bb8aef85d5e279070eae5c6880ddda..13a13a7badcc2bba8bfa599a1a4be62d1ff077fd 100644
--- a/content/browser/gpu/gpu_data_manager_impl.h
+++ b/content/browser/gpu/gpu_data_manager_impl.h
@@ -31,6 +31,7 @@ class CommandLine;
}
namespace gpu {
+struct GPUFeatureStatus;
struct GpuPreferences;
struct VideoMemoryUsageStats;
}
@@ -68,6 +69,7 @@ class CONTENT_EXPORT GpuDataManagerImpl
void InitializeForTesting(const std::string& gpu_blacklist_json,
const gpu::GPUInfo& gpu_info) override;
bool IsFeatureBlacklisted(int feature) const override;
+ bool IsFeatureEnabled(int feature) const override;
gpu::GPUInfo GetGPUInfo() const override;
void GetGpuProcessHandles(
const GetGpuProcessHandlesCallback& callback) const override;
@@ -106,6 +108,10 @@ class CONTENT_EXPORT GpuDataManagerImpl
// loaded, run through blacklist and update blacklisted features.
void UpdateGpuInfo(const gpu::GPUInfo& gpu_info);
+ // Update the GPU feature info. This updates the blacklist and enabled status
+ // of GPU rasterization. In the future this will be used for more features.
+ void UpdateGpuFeatureStatus(const gpu::GPUFeatureStatus& gpu_feature_info);
+
void UpdateVideoMemoryUsageStats(
const gpu::VideoMemoryUsageStats& video_memory_usage_stats);

Powered by Google App Engine
This is Rietveld 408576698