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

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: rename markFirstMeaningfulPaintCandidate to setFirstMeaningfulPaintCandidate. delete errant comment. 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
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintTiming.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..65940300c13a52fb12ba2fea3210ac24c0417ded 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::setFirstMeaningfulPaintCandidate(double timestamp) {
if (m_firstMeaningfulPaintCandidate)
return;
- m_firstMeaningfulPaintCandidate = monotonicallyIncreasingTime();
+ m_firstMeaningfulPaintCandidate = timestamp;
if (frame() && frame()->view() && !frame()->view()->parent()) {
frame()->frameScheduler()->onFirstMeaningfulPaint();
}
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintTiming.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698