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

Unified Diff: Source/core/timing/PerformanceTiming.h

Issue 1314843009: Add DocumentTiming metrics for "time to first text paint" (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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: Source/core/timing/PerformanceTiming.h
diff --git a/Source/core/timing/PerformanceTiming.h b/Source/core/timing/PerformanceTiming.h
index 08315916e71ef625a460b38b473870a7a1af1a1a..7e473c3b099eded0ae301dede20e4ef114c77233 100644
--- a/Source/core/timing/PerformanceTiming.h
+++ b/Source/core/timing/PerformanceTiming.h
@@ -76,7 +76,15 @@ public:
unsigned long long domComplete() const;
unsigned long long loadEventStart() const;
unsigned long long loadEventEnd() const;
+
+ // The below are non-spec timings, for Page Load UMA metrics.
+
+ // The time the first document layout is performed.
unsigned long long firstLayout() const;
+ // The time the first paint operation for visible text was performed.
+ unsigned long long firstNonBlankText() const;
+ // Similar to firstNonBlankText, but only for text with custom fonts.
kinuko 2015/09/15 05:25:08 nit: could we also comment that this may not be re
Kunihiko Sakamoto 2015/09/15 06:22:42 Done.
+ unsigned long long firstCustomFontText() const;
ScriptValue toJSONForBinding(ScriptState*) const;

Powered by Google App Engine
This is Rietveld 408576698