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

Unified Diff: third_party/WebKit/Source/core/css/RemoteFontFaceSource.h

Issue 2359493004: FontLoadHistograms: classify as memory cache hit if FontResource loading not triggered (Closed)
Patch Set: use isLoadStartedCalled() in longLimitExceeded() Created 4 years, 3 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/core/css/RemoteFontFaceSource.h
diff --git a/third_party/WebKit/Source/core/css/RemoteFontFaceSource.h b/third_party/WebKit/Source/core/css/RemoteFontFaceSource.h
index 9bd6946fa80a57ec6af840e1424520f7fbcdeba2..748c9e94360aae521c44401950659f57818b4e28 100644
--- a/third_party/WebKit/Source/core/css/RemoteFontFaceSource.h
+++ b/third_party/WebKit/Source/core/css/RemoteFontFaceSource.h
@@ -75,6 +75,7 @@ private:
bool hadBlankText() { return m_blankPaintTime; }
DataSource dataSource() { return m_dataSource; }
void maySetDataSource(DataSource dataSource) { m_dataSource = (m_dataSource != FromUnknown) ? m_dataSource : dataSource; }
+ bool isLoadStartedCalled() const { return m_loadStartTime != 0; }
private:
void recordLoadTimeHistogram(const FontResource*, int duration);
void recordInterventionResult(bool isTriggered);

Powered by Google App Engine
This is Rietveld 408576698