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

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

Issue 2738813003: Ensure the scheduler always changes from UseCase LOADING to NONE. (Closed)
Patch Set: Update FMPD to use the provisional time rather than the current time. Created 3 years, 9 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/paint/PaintTiming.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintTiming.cpp b/third_party/WebKit/Source/core/paint/PaintTiming.cpp
index 60923e0ce23c35760391ffefe1433cd337e56add..1ec6f8e12c3e425732072dc15fc50555f8988ab1 100644
--- a/third_party/WebKit/Source/core/paint/PaintTiming.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintTiming.cpp
@@ -83,10 +83,10 @@ void PaintTiming::markFirstImagePaint() {
notifyPaintTimingChanged();
}
-void PaintTiming::markFirstMeaningfulPaintCandidate() {
+void PaintTiming::markFirstMeaningfulPaintCandidate(double timestamp) {
if (m_firstMeaningfulPaintCandidate)
return;
- m_firstMeaningfulPaintCandidate = monotonicallyIncreasingTime();
+ m_firstMeaningfulPaintCandidate = timestamp;
if (frame() && frame()->view() && !frame()->view()->parent()) {
frame()->frameScheduler()->onFirstMeaningfulPaint();
}

Powered by Google App Engine
This is Rietveld 408576698