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

Unified Diff: content/browser/gpu/gpu_data_manager_impl.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/compositor_util.cc ('k') | content/browser/gpu/gpu_data_manager_impl.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.h
diff --git a/content/browser/gpu/gpu_data_manager_impl.h b/content/browser/gpu/gpu_data_manager_impl.h
index efd4cf26c1bb8aef85d5e279070eae5c6880ddda..ad03965d44456095f1ba0a30d2f82c630b3ce6dc 100644
--- a/content/browser/gpu/gpu_data_manager_impl.h
+++ b/content/browser/gpu/gpu_data_manager_impl.h
@@ -22,6 +22,7 @@
#include "base/values.h"
#include "content/public/browser/gpu_data_manager.h"
#include "content/public/common/three_d_api_types.h"
+#include "gpu/config/gpu_feature_info.h"
#include "gpu/config/gpu_info.h"
class GURL;
@@ -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 UpdateGpuFeatureInfo(const gpu::GpuFeatureInfo& gpu_feature_info);
+
void UpdateVideoMemoryUsageStats(
const gpu::VideoMemoryUsageStats& video_memory_usage_stats);
« no previous file with comments | « content/browser/gpu/compositor_util.cc ('k') | content/browser/gpu/gpu_data_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698