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

Unified Diff: content/common/gpu/gpu_memory_manager.cc

Issue 11667030: Add GPU memory usage contents browser test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Contents browser test ready for review Created 7 years, 12 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/common/gpu/gpu_memory_manager.cc
diff --git a/content/common/gpu/gpu_memory_manager.cc b/content/common/gpu/gpu_memory_manager.cc
index b8667d2ab13a96458435e05472b4549449231854..a6e145e0c228cd186ddc57ae77abd50099468a16 100644
--- a/content/common/gpu/gpu_memory_manager.cc
+++ b/content/common/gpu/gpu_memory_manager.cc
@@ -423,6 +423,10 @@ void GpuMemoryManager::GetVideoMemoryUsageStats(
base::GetCurrentProcId()].video_memory = GetCurrentUsage();
video_memory_usage_stats->process_map[
nduca 2013/01/05 05:14:42 as an aside, any reason we say video memory rathe
ccameron 2013/01/07 21:36:34 The changes adding video_memory came about before
base::GetCurrentProcId()].has_duplicates = true;
+
+ video_memory_usage_stats->bytes_allocated = GetCurrentUsage();
+ video_memory_usage_stats->bytes_allocated_historical_max =
+ bytes_allocated_historical_max_;
}
void GpuMemoryManager::SetWindowCount(uint32 window_count) {

Powered by Google App Engine
This is Rietveld 408576698