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

Unified Diff: base/memory/discardable_memory_allocator.h

Issue 1259333003: [tracing] Add SkResourceCache as suballocation to avoid double counting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@skia_v1
Patch Set: Removing segment dump from base. Created 5 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
« no previous file with comments | « no previous file | base/memory/discardable_memory_allocator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/memory/discardable_memory_allocator.h
diff --git a/base/memory/discardable_memory_allocator.h b/base/memory/discardable_memory_allocator.h
index 400f87aeee0d49f7b1699ac0d4ed420f2388ca45..7e08b7138675fde55e6ace5c739aa00248e5a98f 100644
--- a/base/memory/discardable_memory_allocator.h
+++ b/base/memory/discardable_memory_allocator.h
@@ -9,6 +9,10 @@
#include "base/memory/scoped_ptr.h"
namespace base {
+namespace trace_event {
+class ProcessMemoryDump;
+}
+
class DiscardableMemory;
class BASE_EXPORT DiscardableMemoryAllocator {
@@ -23,6 +27,10 @@ class BASE_EXPORT DiscardableMemoryAllocator {
virtual scoped_ptr<DiscardableMemory> AllocateLockedDiscardableMemory(
size_t size) = 0;
+ // Returns the memory pool name used by discardable memory allocators for
+ // tracing purposes.
+ static const char* GetMemoryPoolNameForTracing();
+
protected:
virtual ~DiscardableMemoryAllocator() {}
};
« no previous file with comments | « no previous file | base/memory/discardable_memory_allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698