summaryrefslogtreecommitdiffstats
path: root/content/browser/gpu/gpu_data_manager_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/gpu/gpu_data_manager_impl.h')
-rw-r--r--content/browser/gpu/gpu_data_manager_impl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/content/browser/gpu/gpu_data_manager_impl.h b/content/browser/gpu/gpu_data_manager_impl.h
index 7104ed0..4c3c238 100644
--- a/content/browser/gpu/gpu_data_manager_impl.h
+++ b/content/browser/gpu/gpu_data_manager_impl.h
@@ -17,6 +17,7 @@
#include "base/values.h"
#include "content/public/browser/gpu_data_manager.h"
#include "content/public/common/gpu_info.h"
+#include "content/public/common/gpu_memory_stats.h"
class CommandLine;
@@ -33,6 +34,7 @@ class CONTENT_EXPORT GpuDataManagerImpl
virtual bool GpuAccessAllowed() OVERRIDE;
virtual void RequestCompleteGpuInfoIfNeeded() OVERRIDE;
virtual bool IsCompleteGPUInfoAvailable() const OVERRIDE;
+ virtual void RequestVideoMemoryUsageStatsUpdate() OVERRIDE;
virtual bool ShouldUseSoftwareRendering() OVERRIDE;
virtual void RegisterSwiftShaderPath(const FilePath& path) OVERRIDE;
virtual const base::ListValue& GetLogMessages() const OVERRIDE;
@@ -43,6 +45,9 @@ class CONTENT_EXPORT GpuDataManagerImpl
// Only update if the current GPUInfo is not finalized.
void UpdateGpuInfo(const content::GPUInfo& gpu_info);
+ void UpdateVideoMemoryUsageStats(
+ const content::GPUVideoMemoryUsageStats& video_memory_usage_stats);
+
void AddLogMessage(Value* msg);
// Insert disable-feature switches corresponding to preliminary gpu feature