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