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

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

Issue 2738813003: Ensure the scheduler always changes from UseCase LOADING to NONE. (Closed)
Patch Set: Create a test that verifies that network stable creates a FMP candidate. 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 | « no previous file | third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetectorTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetector.cpp
diff --git a/third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetector.cpp b/third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetector.cpp
index 9fca4136977ee48f1cbc383fcf7596b21f0748de..802a148d34ee7be672adab8210727ab007d0178f 100644
--- a/third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetector.cpp
+++ b/third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetector.cpp
@@ -123,6 +123,10 @@ void FirstMeaningfulPaintDetector::networkStableTimerFired(TimerBase*) {
return;
if (m_provisionalFirstMeaningfulPaint) {
+ // If there's only been one contentful paint, then there won't have been
+ // a meaningful paint signalled to the Scheduler, so mark one now.
+ // This is a no-op if a FMPC has already been marked.
+ m_paintTiming->markFirstMeaningfulPaintCandidate();
kouhei (in TOK) 2017/03/13 19:22:48 I'm convinced that we need to signal scheduler her
Kunihiko Sakamoto 2017/03/14 01:44:26 Yeah, this would set a non-paint timestamp to Pain
// Enforce FirstContentfulPaint <= FirstMeaningfulPaint.
double timestamp = std::max(m_provisionalFirstMeaningfulPaint,
m_paintTiming->firstContentfulPaint());
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetectorTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698