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

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

Issue 2397753006: scheduler: Detect load RAIL mode (Closed)
Patch Set: Add fallback for missing FMP Created 4 years, 1 month 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..dffe87eb4354582e7d3c04a894d34cd1d056cf3c 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);
@@ -99,6 +100,8 @@ class CORE_EXPORT PaintTiming final
double m_firstContentfulPaint = 0.0;
double m_firstMeaningfulPaint = 0.0;
+ bool m_seenFirstMeaningfulPaintCandidate = false;
+
Member<Document> m_document;
Member<FirstMeaningfulPaintDetector> m_fmpDetector;
};

Powered by Google App Engine
This is Rietveld 408576698