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

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

Issue 1846913009: HeapSupplements are now just Supplements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 "platform/Supplementable.h" 9 #include "platform/Supplementable.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 #include "wtf/Noncopyable.h" 11 #include "wtf/Noncopyable.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class LocalFrame; 15 class LocalFrame;
16 16
17 // PaintTiming is responsible for tracking paint-related timings for a given 17 // PaintTiming is responsible for tracking paint-related timings for a given
18 // document. 18 // document.
19 class PaintTiming final : public GarbageCollectedFinalized<PaintTiming>, public HeapSupplement<Document> { 19 class PaintTiming final : public GarbageCollectedFinalized<PaintTiming>, public Supplement<Document> {
20 WTF_MAKE_NONCOPYABLE(PaintTiming); 20 WTF_MAKE_NONCOPYABLE(PaintTiming);
21 USING_GARBAGE_COLLECTED_MIXIN(PaintTiming); 21 USING_GARBAGE_COLLECTED_MIXIN(PaintTiming);
22 public: 22 public:
23 virtual ~PaintTiming() { } 23 virtual ~PaintTiming() { }
24 24
25 static PaintTiming& from(Document&); 25 static PaintTiming& from(Document&);
26 26
27 // mark*() methods record the time for the given paint event, record a trace 27 // mark*() methods record the time for the given paint event, record a trace
28 // event, and notify that paint timing has changed. These methods do nothing 28 // event, and notify that paint timing has changed. These methods do nothing
29 // (early return) if a time has already been recorded for the given paint 29 // (early return) if a time has already been recorded for the given paint
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 double m_firstTextPaint = 0.0; 81 double m_firstTextPaint = 0.0;
82 double m_firstImagePaint = 0.0; 82 double m_firstImagePaint = 0.0;
83 double m_firstContentfulPaint = 0.0; 83 double m_firstContentfulPaint = 0.0;
84 84
85 Member<Document> m_document; 85 Member<Document> m_document;
86 }; 86 };
87 87
88 } // namespace blink 88 } // namespace blink
89 89
90 #endif 90 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/page/PagePopupSupplement.cpp ('k') | third_party/WebKit/Source/core/paint/PaintTiming.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698