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

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

Issue 10854076: Add GPU memory tab to the task manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporate review feedback Created 8 years, 4 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 7104ed0d95190eacd2dbcd4d50dd6f100f436613..4c3c23848ea16e1d025d1b6ff558fc8941245c52 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

Powered by Google App Engine
This is Rietveld 408576698