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 Transform3DRecorder_h | 5 #ifndef Transform3DRecorder_h |
6 #define Transform3DRecorder_h | 6 #define Transform3DRecorder_h |
7 | 7 |
8 #include "platform/graphics/paint/DisplayItem.h" | 8 #include "platform/graphics/paint/DisplayItem.h" |
| 9 #include "platform/graphics/paint/PaintStash.h" |
9 #include "wtf/Allocator.h" | 10 #include "wtf/Allocator.h" |
10 | 11 |
11 namespace blink { | 12 namespace blink { |
12 | 13 |
13 class FloatPoint3D; | 14 class FloatPoint3D; |
14 class GraphicsContext; | 15 class GraphicsContext; |
15 class TransformationMatrix; | 16 class TransformationMatrix; |
16 | 17 |
17 class Transform3DRecorder { | 18 class Transform3DRecorder { |
18 STACK_ALLOCATED(); | 19 STACK_ALLOCATED(); |
19 | 20 |
20 public: | 21 public: |
21 Transform3DRecorder(GraphicsContext&, | 22 Transform3DRecorder(GraphicsContext&, |
22 const DisplayItemClient&, | |
23 DisplayItem::Type, | 23 DisplayItem::Type, |
24 const TransformationMatrix&, | 24 const TransformationMatrix&, |
25 const FloatPoint3D& transformOrigin); | 25 const FloatPoint3D& transformOrigin, |
| 26 const LayoutRect& visualRect, |
| 27 const WTF::String& debugName, |
| 28 bool paintedOutputOfObjectHasNoEffectRegardlessOfSize); |
26 ~Transform3DRecorder(); | 29 ~Transform3DRecorder(); |
27 | 30 |
28 private: | 31 private: |
29 GraphicsContext& m_context; | 32 GraphicsContext& m_context; |
30 const DisplayItemClient& m_client; | 33 PaintStash m_client; |
31 DisplayItem::Type m_type; | 34 DisplayItem::Type m_type; |
32 bool m_skipRecordingForIdentityTransform; | 35 bool m_skipRecordingForIdentityTransform; |
33 }; | 36 }; |
34 | 37 |
35 } // namespace blink | 38 } // namespace blink |
36 | 39 |
37 #endif // Transform3DRecorder_h | 40 #endif // Transform3DRecorder_h |
OLD | NEW |