| Index: Source/core/css/CSSFontFaceSource.cpp
|
| diff --git a/Source/core/css/CSSFontFaceSource.cpp b/Source/core/css/CSSFontFaceSource.cpp
|
| index c0bdb7c3e0fbfca95e8360cfcc220e11efced33c..7dad984971b5e579c56958bad412e24275a66f82 100644
|
| --- a/Source/core/css/CSSFontFaceSource.cpp
|
| +++ b/Source/core/css/CSSFontFaceSource.cpp
|
| @@ -30,10 +30,10 @@
|
| #include "core/css/CSSFontFace.h"
|
| #include "core/css/CSSFontSelector.h"
|
| #include "core/fetch/FontResource.h"
|
| -#include "core/platform/HistogramSupport.h"
|
| #include "core/platform/graphics/FontCache.h"
|
| #include "core/platform/graphics/FontDescription.h"
|
| #include "core/platform/graphics/SimpleFontData.h"
|
| +#include "public/platform/Platform.h"
|
| #include "wtf/CurrentTime.h"
|
|
|
| #if ENABLE(SVG_FONTS)
|
| @@ -280,7 +280,7 @@ void CSSFontFaceSource::FontLoadHistograms::loadStarted()
|
| void CSSFontFaceSource::FontLoadHistograms::recordLocalFont(bool loadSuccess)
|
| {
|
| if (!m_loadStartTime) {
|
| - HistogramSupport::histogramEnumeration("WebFont.LocalFontUsed", loadSuccess ? 1 : 0, 2);
|
| + WebKit::Platform::current()->histogramEnumeration("WebFont.LocalFontUsed", loadSuccess ? 1 : 0, 2);
|
| m_loadStartTime = -1; // Do not count this font again.
|
| }
|
| }
|
| @@ -289,14 +289,14 @@ void CSSFontFaceSource::FontLoadHistograms::recordRemoteFont(const FontResource*
|
| {
|
| if (m_loadStartTime > 0 && font && !font->isLoading()) {
|
| int duration = static_cast<int>(currentTimeMS() - m_loadStartTime);
|
| - HistogramSupport::histogramCustomCounts(histogramName(font), duration, 0, 10000, 50);
|
| + WebKit::Platform::current()->histogramCustomCounts(histogramName(font), duration, 0, 10000, 50);
|
| m_loadStartTime = -1;
|
|
|
| enum { Miss, Hit, DataUrl, CacheHitEnumMax };
|
| int histogramValue = font->url().protocolIsData() ? DataUrl
|
| : font->response().wasCached() ? Hit
|
| : Miss;
|
| - HistogramSupport::histogramEnumeration("WebFont.CacheHit", histogramValue, CacheHitEnumMax);
|
| + WebKit::Platform::current()->histogramEnumeration("WebFont.CacheHit", histogramValue, CacheHitEnumMax);
|
| }
|
| }
|
|
|
|
|