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

Unified Diff: chrome/browser/task_manager/task_manager.h

Issue 10861018: Fix memory leaks from adding GPU memory to task manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « no previous file | chrome/browser/task_manager/task_manager.cc » ('j') | content/browser/gpu/gpu_process_host.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/task_manager/task_manager.h
diff --git a/chrome/browser/task_manager/task_manager.h b/chrome/browser/task_manager/task_manager.h
index fc47ddc5f181b10a790e948a04c282fee2744e27..056c9933a2db546c95e02b33bccdeb0c8af0b4ec 100644
--- a/chrome/browser/task_manager/task_manager.h
+++ b/chrome/browser/task_manager/task_manager.h
@@ -22,6 +22,7 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h"
class TaskManagerModel;
+class TaskManagerModelGpuDataManagerObserver;
namespace base {
class ProcessMetrics;
@@ -572,6 +573,11 @@ class TaskManagerModel : public base::RefCountedThreadSafe<TaskManagerModel> {
content::GPUVideoMemoryUsageStats video_memory_usage_stats_;
bool pending_video_memory_usage_stats_update_;
ccameron 2012/08/20 21:20:02 The dtor for the observer will call into GpuDataMa
+ // An observer waiting for video memory usage stats updates from the GPU
+ // process
+ scoped_ptr<TaskManagerModelGpuDataManagerObserver>
+ video_memory_usage_stats_observer_;
+
// A map that contains the private/shared memory usage of the process. We
// cache this because the same APIs are called on linux and windows, and
// because the linux call takes >10ms to complete. This cache is cleared on
« no previous file with comments | « no previous file | chrome/browser/task_manager/task_manager.cc » ('j') | content/browser/gpu/gpu_process_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698