Chromium Code Reviews| Index: third_party/WebKit/Source/core/timing/PerformanceBase.h |
| diff --git a/third_party/WebKit/Source/core/timing/PerformanceBase.h b/third_party/WebKit/Source/core/timing/PerformanceBase.h |
| index 3bbee2edb770f543264ff4152219cc1c445af1ae..56111394829c7fd9cf900a75a37a2f0e24cf815c 100644 |
| --- a/third_party/WebKit/Source/core/timing/PerformanceBase.h |
| +++ b/third_party/WebKit/Source/core/timing/PerformanceBase.h |
| @@ -36,6 +36,7 @@ |
| #include "core/dom/DOMHighResTimeStamp.h" |
| #include "core/events/EventTarget.h" |
| #include "core/timing/PerformanceEntry.h" |
| +#include "core/timing/PerformancePaintTiming.h" |
| #include "platform/Timer.h" |
| #include "platform/heap/Handle.h" |
| #include "wtf/Forward.h" |
| @@ -54,6 +55,8 @@ class ResourceTimingInfo; |
| class UserTiming; |
| using PerformanceEntryVector = HeapVector<Member<PerformanceEntry>>; |
| +using PerformancePaintTimingEntries = |
| + HeapHashMap<String, Member<PerformanceEntry>>; |
| using PerformanceObservers = HeapListHashSet<Member<PerformanceObserver>>; |
| class CORE_EXPORT PerformanceBase : public EventTargetWithInlineData { |
| @@ -107,6 +110,10 @@ class CORE_EXPORT PerformanceBase : public EventTargetWithInlineData { |
| void addNavigationTiming(LocalFrame*); |
| + void addPaintTiming(PerformancePaintTiming::PaintType, double startTime); |
| + |
| + void clearPaintTimingBuffer(); |
| + |
| void mark(const String& markName, ExceptionState&); |
| void clearMarks(const String& markName); |
| @@ -143,6 +150,7 @@ class CORE_EXPORT PerformanceBase : public EventTargetWithInlineData { |
| PerformanceEntryVector m_resourceTimingBuffer; |
| unsigned m_resourceTimingBufferSize; |
| Member<PerformanceEntry> m_navigationTiming; |
| + PerformancePaintTimingEntries m_paintTimingBuffer; |
|
panicker
2016/11/29 22:21:15
This is not supposed to be buffer-able yet due to
sunjian
2016/12/02 21:39:57
Done.
|
| Member<UserTiming> m_userTiming; |
| double m_timeOrigin; |