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

Unified Diff: third_party/WebKit/Source/core/paint/PaintTiming.h

Issue 2528513003: first-paint and first-contentful paint (Closed)
Patch Set: updated layout tests Created 4 years 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/paint/PaintTiming.h
diff --git a/third_party/WebKit/Source/core/paint/PaintTiming.h b/third_party/WebKit/Source/core/paint/PaintTiming.h
index 488a2a3b68c5134ae9d75721e8d26f1fdc33b356..fc09448c3bf6ab8ceeea73d682de42a7eef7a82d 100644
--- a/third_party/WebKit/Source/core/paint/PaintTiming.h
+++ b/third_party/WebKit/Source/core/paint/PaintTiming.h
@@ -7,6 +7,7 @@
#include "core/dom/Document.h"
#include "core/paint/FirstMeaningfulPaintDetector.h"
+#include "core/timing/PerformancePaintTiming.h"
#include "platform/Supplementable.h"
#include "platform/heap/Handle.h"
#include "wtf/Noncopyable.h"
@@ -89,6 +90,9 @@ class CORE_EXPORT PaintTiming final
// marked as part of marking first text/image paint, for example.
void setFirstPaint(double stamp);
+ void addPaintTimingToPerformance(PerformancePaintTiming::PaintType,
+ double stamp) const;
+
// setFirstContentfulPaint will also set first paint time if first paint
// time has not yet been recorded.
void setFirstContentfulPaint(double stamp);

Powered by Google App Engine
This is Rietveld 408576698