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

Unified Diff: third_party/WebKit/Source/core/timing/PerformanceBase.h

Issue 2528513003: first-paint and first-contentful paint (Closed)
Patch Set: Got rid of DCHECK cause it breaks unit tests Created 3 years, 11 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/timing/PerformanceBase.h
diff --git a/third_party/WebKit/Source/core/timing/PerformanceBase.h b/third_party/WebKit/Source/core/timing/PerformanceBase.h
index 508f492baae6734429e6603500e84b431f745ecf..db35f6c80f5bdbde1d9e5f6573bcede630522ac5 100644
--- a/third_party/WebKit/Source/core/timing/PerformanceBase.h
+++ b/third_party/WebKit/Source/core/timing/PerformanceBase.h
@@ -38,6 +38,7 @@
#include "core/loader/FrameLoaderTypes.h"
#include "core/timing/PerformanceEntry.h"
#include "core/timing/PerformanceNavigationTiming.h"
+#include "core/timing/PerformancePaintTiming.h"
#include "platform/Timer.h"
#include "platform/heap/Handle.h"
#include "wtf/Forward.h"
@@ -113,6 +114,10 @@ class CORE_EXPORT PerformanceBase : public EventTargetWithInlineData {
void addNavigationTiming(LocalFrame*);
+ void addFirstPaintTiming(double startTime);
+
+ void addFirstContentfulPaintTiming(double startTime);
+
void mark(const String& markName, ExceptionState&);
void clearMarks(const String& markName);
@@ -145,6 +150,8 @@ class CORE_EXPORT PerformanceBase : public EventTargetWithInlineData {
const AtomicString&,
ExecutionContext*);
+ void addPaintTiming(PerformancePaintTiming::PaintType, double startTime);
+
protected:
explicit PerformanceBase(double timeOrigin);
« no previous file with comments | « third_party/WebKit/Source/core/timing/BUILD.gn ('k') | third_party/WebKit/Source/core/timing/PerformanceBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698