Index: Source/core/fetch/FontResource.cpp |
diff --git a/Source/core/fetch/FontResource.cpp b/Source/core/fetch/FontResource.cpp |
index de1688b9c51135f0f26d58241af07371671d5666..cbe9aab0eb108011a4b397c84b5d32ee8e8b232d 100644 |
--- a/Source/core/fetch/FontResource.cpp |
+++ b/Source/core/fetch/FontResource.cpp |
@@ -79,7 +79,6 @@ void FontResource::beginLoadIfNeeded(ResourceFetcher* dl) |
ResourceClientWalker<FontResourceClient> walker(m_clients); |
while (FontResourceClient* client = walker.next()) |
client->didStartFontLoad(this); |
- m_histograms.loadStarted(); |
} |
} |
@@ -165,36 +164,4 @@ void FontResource::checkNotify() |
c->fontLoaded(this); |
} |
-void FontResource::willUseFontData() |
-{ |
- if (!isLoaded()) |
- m_histograms.willUseFontData(); |
-} |
- |
-FontResource::FontResourceHistograms::~FontResourceHistograms() |
-{ |
- if (m_styledTime > 0) |
- blink::Platform::current()->histogramEnumeration("WebFont.Resource.UsageType", StyledButNotUsed, UsageTypeMax); |
-} |
- |
-void FontResource::FontResourceHistograms::willUseFontData() |
-{ |
- if (!m_styledTime) |
- m_styledTime = currentTimeMS(); |
-} |
- |
-void FontResource::FontResourceHistograms::loadStarted() |
-{ |
- if (m_styledTime < 0) |
- return; |
- if (!m_styledTime) { |
- blink::Platform::current()->histogramEnumeration("WebFont.Resource.UsageType", NotStyledButUsed, UsageTypeMax); |
- } else { |
- int duration = static_cast<int>(currentTimeMS() - m_styledTime); |
- blink::Platform::current()->histogramCustomCounts("WebFont.Resource.StyleRecalcToDownloadLatency", duration, 0, 10000, 50); |
- blink::Platform::current()->histogramEnumeration("WebFont.Resource.UsageType", StyledAndUsed, UsageTypeMax); |
- } |
- m_styledTime = -1; |
-} |
- |
} |