| 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 "wtf/Allocator.h" |
| 10 #include "wtf/Noncopyable.h" | 11 #include "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 m_startMs; | 92 double m_startMs; |
| 93 unsigned m_depth; | 93 unsigned m_depth; |
| 94 unsigned m_counters[NumCounters]; | 94 unsigned m_counters[NumCounters]; |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 } // namespace blink | 97 } // namespace blink |
| 98 | 98 |
| 99 #endif // LayoutAnalyzer_h | 99 #endif // LayoutAnalyzer_h |
| OLD | NEW |