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

Side by Side Diff: third_party/WebKit/Source/core/dom/DocumentTiming.cpp

Issue 1456883002: Move paint-related timings out of DocumentTiming (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 #include "config.h" 5 #include "config.h"
6 #include "core/dom/DocumentTiming.h" 6 #include "core/dom/DocumentTiming.h"
7 7
8 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
9 #include "core/loader/DocumentLoader.h" 9 #include "core/loader/DocumentLoader.h"
10 #include "platform/TraceEvent.h" 10 #include "platform/TraceEvent.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 notifyDocumentTimingChanged(); 68 notifyDocumentTimingChanged();
69 } 69 }
70 70
71 void DocumentTiming::markFirstLayout() 71 void DocumentTiming::markFirstLayout()
72 { 72 {
73 m_firstLayout = monotonicallyIncreasingTime(); 73 m_firstLayout = monotonicallyIncreasingTime();
74 TRACE_EVENT_MARK_WITH_TIMESTAMP1("blink.user_timing", "firstLayout", m_first Layout, "frame", frame()); 74 TRACE_EVENT_MARK_WITH_TIMESTAMP1("blink.user_timing", "firstLayout", m_first Layout, "frame", frame());
75 notifyDocumentTimingChanged(); 75 notifyDocumentTimingChanged();
76 } 76 }
77 77
78 void DocumentTiming::markFirstPaint()
79 {
80 m_firstPaint = monotonicallyIncreasingTime();
81 TRACE_EVENT_MARK_WITH_TIMESTAMP1("blink.user_timing", "firstPaint", m_firstP aint, "frame", frame());
82 notifyDocumentTimingChanged();
83 }
84
85 void DocumentTiming::markFirstTextPaint()
86 {
87 m_firstTextPaint = monotonicallyIncreasingTime();
88 TRACE_EVENT_MARK_WITH_TIMESTAMP1("blink.user_timing", "firstTextPaint", m_fi rstTextPaint, "frame", frame());
89 notifyDocumentTimingChanged();
90 }
91
92 void DocumentTiming::markFirstImagePaint()
93 {
94 m_firstImagePaint = monotonicallyIncreasingTime();
95 TRACE_EVENT_MARK_WITH_TIMESTAMP1("blink.user_timing", "firstImagePaint", m_f irstImagePaint, "frame", frame());
96 notifyDocumentTimingChanged();
97 }
98
99 } // namespace blink 78 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698