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 ScopeRecorder_h | 5 #ifndef ScopeRecorder_h |
6 #define ScopeRecorder_h | 6 #define ScopeRecorder_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "platform/graphics/paint/DisplayItem.h" | 9 #include "platform/graphics/paint/DisplayItem.h" |
10 #include "wtf/Allocator.h" | 10 #include "wtf/Allocator.h" |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 class GraphicsContext; | 14 class GraphicsContext; |
15 class LayoutObject; | 15 class LayoutObject; |
16 class PaintController; | 16 class PaintController; |
17 | 17 |
18 class CORE_EXPORT ScopeRecorder { | 18 class CORE_EXPORT ScopeRecorder { |
19 ALLOW_ONLY_INLINE_ALLOCATION(); | 19 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
20 public: | 20 public: |
21 ScopeRecorder(GraphicsContext&); | 21 ScopeRecorder(GraphicsContext&); |
22 | 22 |
23 ~ScopeRecorder(); | 23 ~ScopeRecorder(); |
24 | 24 |
25 private: | 25 private: |
26 PaintController& m_paintController; | 26 PaintController& m_paintController; |
27 }; | 27 }; |
28 | 28 |
29 } // namespace blink | 29 } // namespace blink |
30 | 30 |
31 #endif // ScopeRecorder_h | 31 #endif // ScopeRecorder_h |
OLD | NEW |