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 #ifndef LayoutAnalyzer_h | 5 #ifndef LayoutAnalyzer_h |
6 #define LayoutAnalyzer_h | 6 #define LayoutAnalyzer_h |
7 | 7 |
| 8 #include <memory> |
8 #include "platform/LayoutUnit.h" | 9 #include "platform/LayoutUnit.h" |
9 #include "wtf/Allocator.h" | 10 #include "platform/wtf/Allocator.h" |
10 #include "wtf/Noncopyable.h" | 11 #include "platform/wtf/Noncopyable.h" |
11 #include <memory> | |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 class LayoutBlock; | 15 class LayoutBlock; |
16 class LayoutObject; | 16 class LayoutObject; |
17 class TracedValue; | 17 class TracedValue; |
18 | 18 |
19 // Observes the performance of layout and reports statistics via a TracedValue. | 19 // Observes the performance of layout and reports statistics via a TracedValue. |
20 // Usage: | 20 // Usage: |
21 // LayoutAnalyzer::Scope analyzer(*this); | 21 // LayoutAnalyzer::Scope analyzer(*this); |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 const char* NameForCounter(Counter) const; | 90 const char* NameForCounter(Counter) const; |
91 | 91 |
92 double start_ms_; | 92 double start_ms_; |
93 unsigned depth_; | 93 unsigned depth_; |
94 unsigned counters_[kNumCounters]; | 94 unsigned counters_[kNumCounters]; |
95 }; | 95 }; |
96 | 96 |
97 } // namespace blink | 97 } // namespace blink |
98 | 98 |
99 #endif // LayoutAnalyzer_h | 99 #endif // LayoutAnalyzer_h |
OLD | NEW |