OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 TransformRecorder_h | 5 #ifndef TransformRecorder_h |
6 #define TransformRecorder_h | 6 #define TransformRecorder_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 "platform/graphics/paint/PaintStash.h" |
10 #include "wtf/Allocator.h" | 11 #include "wtf/Allocator.h" |
11 | 12 |
12 namespace blink { | 13 namespace blink { |
13 | 14 |
14 class GraphicsContext; | 15 class GraphicsContext; |
15 class AffineTransform; | 16 class AffineTransform; |
16 | 17 |
17 class CORE_EXPORT TransformRecorder { | 18 class CORE_EXPORT TransformRecorder { |
18 STACK_ALLOCATED(); | 19 STACK_ALLOCATED(); |
19 | 20 |
20 public: | 21 public: |
21 TransformRecorder(GraphicsContext&, | 22 TransformRecorder(GraphicsContext&, |
22 const DisplayItemClient&, | 23 const AffineTransform&, |
23 const AffineTransform&); | 24 const LayoutRect& visualRect, |
| 25 const WTF::String& debugName, |
| 26 bool paintedOutputOfObjectHasNoEffectRegardlessOfSize); |
24 ~TransformRecorder(); | 27 ~TransformRecorder(); |
25 | 28 |
26 private: | 29 private: |
27 GraphicsContext& m_context; | 30 GraphicsContext& m_context; |
28 const DisplayItemClient& m_client; | 31 PaintStash m_client; |
29 bool m_skipRecordingForIdentityTransform; | 32 bool m_skipRecordingForIdentityTransform; |
30 }; | 33 }; |
31 | 34 |
32 } // namespace blink | 35 } // namespace blink |
33 | 36 |
34 #endif // TransformRecorder_h | 37 #endif // TransformRecorder_h |
OLD | NEW |