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

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

Issue 2755873002: Improve FirstMeaningfulPaintDetectorTest's timer tests (Closed)
Patch Set: 0.001 -> 1 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/FirstMeaningfulPaintDetector.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.h
diff --git a/third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetector.h b/third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetector.h
index c04d9da72ccebb5934b916b7451dd855ab9e3a03..d9733eb398d251f62de4140b6dd2c0f6a3494213 100644
--- a/third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetector.h
+++ b/third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetector.h
@@ -53,6 +53,11 @@ class CORE_EXPORT FirstMeaningfulPaintDetector
private:
friend class FirstMeaningfulPaintDetectorTest;
+ // The page is n-quiet if there are no more than n active network requests for
+ // this duration of time.
+ static constexpr double kNetwork2QuietWindowSeconds = 3;
+ static constexpr double kNetwork0QuietWindowSeconds = 0.5;
+
Document* document();
int activeConnections();
void setNetworkQuietTimers(int activeConnections);
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetector.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698