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

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

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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 PaintTiming_h 5 #ifndef PaintTiming_h
6 #define PaintTiming_h 6 #define PaintTiming_h
7 7
8 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
9 #include "core/paint/FirstMeaningfulPaintDetector.h" 9 #include "core/paint/FirstMeaningfulPaintDetector.h"
10 #include "platform/Supplementable.h" 10 #include "platform/Supplementable.h"
(...skipping 25 matching lines...) Expand all
36 36
37 // markFirstTextPaint, markFirstImagePaint, and markFirstContentfulPaint 37 // markFirstTextPaint, markFirstImagePaint, and markFirstContentfulPaint
38 // will also record first paint if first paint hasn't been recorded yet. 38 // will also record first paint if first paint hasn't been recorded yet.
39 void markFirstContentfulPaint(); 39 void markFirstContentfulPaint();
40 40
41 // markFirstTextPaint and markFirstImagePaint will also record first 41 // markFirstTextPaint and markFirstImagePaint will also record first
42 // contentful paint if first contentful paint hasn't been recorded yet. 42 // contentful paint if first contentful paint hasn't been recorded yet.
43 void markFirstTextPaint(); 43 void markFirstTextPaint();
44 void markFirstImagePaint(); 44 void markFirstImagePaint();
45 45
46 void markFirstMeaningfulPaintCandidate(); 46 void setFirstMeaningfulPaintCandidate(double timestamp);
47 void setFirstMeaningfulPaint(double stamp); 47 void setFirstMeaningfulPaint(double stamp);
48 void notifyPaint(bool isFirstPaint, bool textPainted, bool imagePainted); 48 void notifyPaint(bool isFirstPaint, bool textPainted, bool imagePainted);
49 49
50 // The getters below return monotonically-increasing seconds, or zero if the 50 // The getters below return monotonically-increasing seconds, or zero if the
51 // given paint event has not yet occurred. See the comments for 51 // given paint event has not yet occurred. See the comments for
52 // monotonicallyIncreasingTime in wtf/CurrentTime.h for additional details. 52 // monotonicallyIncreasingTime in wtf/CurrentTime.h for additional details.
53 53
54 // firstPaint returns the first time that anything was painted for the 54 // firstPaint returns the first time that anything was painted for the
55 // current document. 55 // current document.
56 double firstPaint() const { return m_firstPaint; } 56 double firstPaint() const { return m_firstPaint; }
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 double m_firstContentfulPaint = 0.0; 107 double m_firstContentfulPaint = 0.0;
108 double m_firstMeaningfulPaint = 0.0; 108 double m_firstMeaningfulPaint = 0.0;
109 double m_firstMeaningfulPaintCandidate = 0.0; 109 double m_firstMeaningfulPaintCandidate = 0.0;
110 110
111 Member<FirstMeaningfulPaintDetector> m_fmpDetector; 111 Member<FirstMeaningfulPaintDetector> m_fmpDetector;
112 }; 112 };
113 113
114 } // namespace blink 114 } // namespace blink
115 115
116 #endif 116 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698