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

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

Issue 10702200: PyAuto test for GPU memory consumption (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 212b50d0ed90656e91aa3155a9d7695638f7ca89..8217951d404ee27898caef849e8717dd5281eeda 100644
--- a/content/common/gpu/gpu_memory_manager.cc
+++ b/content/common/gpu/gpu_memory_manager.cc
@@ -240,4 +240,10 @@ void GpuMemoryManager::Manage() {
GpuMemoryAllocation(0, GpuMemoryAllocation::kHasNoBuffers));
}
+void GpuMemoryManager::GetMemStats(content::GpuMemStats& stats) {
+ stats.currently_allocated_bytes = 16*1024*1024;
+ stats.max_concurrently_allocated_bytes = 32*1024*1024;
+ stats.total_bytes = 64*1024*1024;
+}
+
#endif

Powered by Google App Engine
This is Rietveld 408576698