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

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

Issue 2391383002: Moving platform tracing things into platform/tracing. (Closed)
Patch Set: Created 4 years, 2 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 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 #include "core/paint/FirstMeaningfulPaintDetector.h" 5 #include "core/paint/FirstMeaningfulPaintDetector.h"
6 6
7 #include "core/css/FontFaceSet.h" 7 #include "core/css/FontFaceSet.h"
8 #include "core/fetch/ResourceFetcher.h" 8 #include "core/fetch/ResourceFetcher.h"
9 #include "core/paint/PaintTiming.h" 9 #include "core/paint/PaintTiming.h"
10 #include "platform/TraceEvent.h" 10 #include "platform/tracing/TraceEvent.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 namespace { 14 namespace {
15 15
16 // Web fonts that laid out more than this number of characters block First 16 // Web fonts that laid out more than this number of characters block First
17 // Meaningful Paint. 17 // Meaningful Paint.
18 const int kBlankCharactersThreshold = 200; 18 const int kBlankCharactersThreshold = 200;
19 19
20 // FirstMeaningfulPaintDetector stops observing layouts and reports First 20 // FirstMeaningfulPaintDetector stops observing layouts and reports First
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 if (m_provisionalFirstMeaningfulPaint) 114 if (m_provisionalFirstMeaningfulPaint)
115 m_paintTiming->setFirstMeaningfulPaint(m_provisionalFirstMeaningfulPaint); 115 m_paintTiming->setFirstMeaningfulPaint(m_provisionalFirstMeaningfulPaint);
116 m_state = Reported; 116 m_state = Reported;
117 } 117 }
118 118
119 DEFINE_TRACE(FirstMeaningfulPaintDetector) { 119 DEFINE_TRACE(FirstMeaningfulPaintDetector) {
120 visitor->trace(m_paintTiming); 120 visitor->trace(m_paintTiming);
121 } 121 }
122 122
123 } // namespace blink 123 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698