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

Unified Diff: third_party/WebKit/Source/platform/fonts/FontDataCache.h

Issue 2123193002: Add GlyphMetricsMap memory consumption to memory-infra tracing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: third_party/WebKit/Source/platform/fonts/FontDataCache.h
diff --git a/third_party/WebKit/Source/platform/fonts/FontDataCache.h b/third_party/WebKit/Source/platform/fonts/FontDataCache.h
index f08d5cfd8c8acbb192840d9209980d615e74cea0..496c7ff1f0c15f14a9061b94b8727c7f568f4bbc 100644
--- a/third_party/WebKit/Source/platform/fonts/FontDataCache.h
+++ b/third_party/WebKit/Source/platform/fonts/FontDataCache.h
@@ -36,6 +36,13 @@
#include "wtf/HashMap.h"
#include "wtf/ListHashSet.h"
+namespace base {
+namespace trace_event {
+class ProcessMemoryDump;
+}
+}
+
+
namespace blink {
class SimpleFontData;
@@ -85,6 +92,8 @@ public:
// Returns true if any removal of cache items actually occurred.
bool purge(PurgeSeverity);
+ void dumpCountAndGlyphToBoundsMaps(base::trace_event::ProcessMemoryDump*);
+
private:
bool purgeLeastRecentlyUsed(int count);

Powered by Google App Engine
This is Rietveld 408576698