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

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

Issue 2397753006: scheduler: Detect load RAIL mode (Closed)
Patch Set: Rebased 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..336e8cacad5cd3c060bae413375f939ce0029660 100644
--- a/third_party/WebKit/Source/core/paint/PaintTiming.h
+++ b/third_party/WebKit/Source/core/paint/PaintTiming.h
@@ -43,6 +43,7 @@ class CORE_EXPORT PaintTiming final
void markFirstTextPaint();
void markFirstImagePaint();
+ void markFirstMeaningfulPaintCandidate();
void setFirstMeaningfulPaint(double stamp);
void notifyPaint(bool isFirstPaint, bool textPainted, bool imagePainted);
@@ -69,6 +70,14 @@ class CORE_EXPORT PaintTiming final
// was painted.
double firstMeaningfulPaint() const { return m_firstMeaningfulPaint; }
+ // firstMeaningfulPaintCandidate indicates the first time we considered a
+ // paint to qualify as the potentially first meaningful paint. Unlike
+ // firstMeaningfulPaint, this signal is available in real time, but it may be
+ // an optimistic (i.e., too early) estimate.
+ double firstMeaningfulPaintCandidate() const {
+ return m_firstMeaningfulPaintCandidate;
+ }
+
Document* document() { return m_document.get(); }
FirstMeaningfulPaintDetector& firstMeaningfulPaintDetector() {
return *m_fmpDetector;
@@ -98,6 +107,7 @@ class CORE_EXPORT PaintTiming final
double m_firstImagePaint = 0.0;
double m_firstContentfulPaint = 0.0;
double m_firstMeaningfulPaint = 0.0;
+ double m_firstMeaningfulPaintCandidate = 0.0;
Member<Document> m_document;
Member<FirstMeaningfulPaintDetector> m_fmpDetector;

Powered by Google App Engine
This is Rietveld 408576698