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

Side by Side Diff: third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetector.h

Issue 2397753006: scheduler: Detect load RAIL mode (Closed)
Patch Set: Rebased Created 4 years 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetector.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef FirstMeaningfulPaintDetector_h 5 #ifndef FirstMeaningfulPaintDetector_h
6 #define FirstMeaningfulPaintDetector_h 6 #define FirstMeaningfulPaintDetector_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "platform/Timer.h" 9 #include "platform/Timer.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 void networkStableTimerFired(TimerBase*); 57 void networkStableTimerFired(TimerBase*);
58 58
59 enum State { NextPaintIsNotMeaningful, NextPaintIsMeaningful, Reported }; 59 enum State { NextPaintIsNotMeaningful, NextPaintIsMeaningful, Reported };
60 State m_state = NextPaintIsNotMeaningful; 60 State m_state = NextPaintIsNotMeaningful;
61 61
62 Member<PaintTiming> m_paintTiming; 62 Member<PaintTiming> m_paintTiming;
63 double m_provisionalFirstMeaningfulPaint = 0.0; 63 double m_provisionalFirstMeaningfulPaint = 0.0;
64 double m_maxSignificanceSoFar = 0.0; 64 double m_maxSignificanceSoFar = 0.0;
65 double m_accumulatedSignificanceWhileHavingBlankText = 0.0; 65 double m_accumulatedSignificanceWhileHavingBlankText = 0.0;
66 unsigned m_prevLayoutObjectCount = 0; 66 unsigned m_prevLayoutObjectCount = 0;
67 bool m_seenFirstMeaningfulPaintCandidate = false;
67 Timer<FirstMeaningfulPaintDetector> m_networkStableTimer; 68 Timer<FirstMeaningfulPaintDetector> m_networkStableTimer;
68 }; 69 };
69 70
70 } // namespace blink 71 } // namespace blink
71 72
72 #endif 73 #endif
OLDNEW
« 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