Index: third_party/WebKit/Source/platform/fonts/FontCache.cpp |
diff --git a/third_party/WebKit/Source/platform/fonts/FontCache.cpp b/third_party/WebKit/Source/platform/fonts/FontCache.cpp |
index 462f0d04ff0cd9443d31061f85b23e7733a538f1..0cb4c99a8d0f0183cb26470224676e56270b1234 100644 |
--- a/third_party/WebKit/Source/platform/fonts/FontCache.cpp |
+++ b/third_party/WebKit/Source/platform/fonts/FontCache.cpp |
@@ -31,6 +31,7 @@ |
#include "platform/FontFamilyNames.h" |
+#include "platform/Histogram.h" |
#include "platform/RuntimeEnabledFeatures.h" |
#include "platform/fonts/AlternateFontFamily.h" |
#include "platform/fonts/FontCacheClient.h" |
@@ -250,7 +251,8 @@ static inline void purgeFallbackListShaperCache() |
} |
gFallbackListShaperCache->clear(); |
} |
- Platform::current()->histogramCustomCounts("Blink.Fonts.ShapeCache", items, 1, 1000000, 50); |
+ DEFINE_STATIC_LOCAL(CustomCountHistogram, shapeCacheHistogram, ("Blink.Fonts.ShapeCache", 1, 1000000, 50)); |
+ shapeCacheHistogram.count(items); |
} |
void FontCache::invalidateShapeCache() |