OLD | NEW |
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 "core/timing/PerformanceObserverEntryList.h" | 5 #include "core/timing/PerformanceObserverEntryList.h" |
6 | 6 |
| 7 #include <algorithm> |
7 #include "core/timing/PerformanceEntry.h" | 8 #include "core/timing/PerformanceEntry.h" |
8 #include "wtf/StdLibExtras.h" | 9 #include "wtf/StdLibExtras.h" |
9 #include <algorithm> | |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 | 12 |
13 PerformanceObserverEntryList::PerformanceObserverEntryList( | 13 PerformanceObserverEntryList::PerformanceObserverEntryList( |
14 const PerformanceEntryVector& entryVector) | 14 const PerformanceEntryVector& entryVector) |
15 : m_performanceEntries(entryVector) {} | 15 : m_performanceEntries(entryVector) {} |
16 | 16 |
17 PerformanceObserverEntryList::~PerformanceObserverEntryList() {} | 17 PerformanceObserverEntryList::~PerformanceObserverEntryList() {} |
18 | 18 |
19 PerformanceEntryVector PerformanceObserverEntryList::getEntries() const { | 19 PerformanceEntryVector PerformanceObserverEntryList::getEntries() const { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 std::sort(entries.begin(), entries.end(), | 66 std::sort(entries.begin(), entries.end(), |
67 PerformanceEntry::startTimeCompareLessThan); | 67 PerformanceEntry::startTimeCompareLessThan); |
68 return entries; | 68 return entries; |
69 } | 69 } |
70 | 70 |
71 DEFINE_TRACE(PerformanceObserverEntryList) { | 71 DEFINE_TRACE(PerformanceObserverEntryList) { |
72 visitor->trace(m_performanceEntries); | 72 visitor->trace(m_performanceEntries); |
73 } | 73 } |
74 | 74 |
75 } // namespace blink | 75 } // namespace blink |
OLD | NEW |