| 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 | 10 |
| 10 namespace blink { | 11 namespace blink { |
| 11 | 12 |
| 12 class GraphicsContext; | 13 class GraphicsContext; |
| 13 class TransformationMatrix; | 14 class TransformationMatrix; |
| 14 | 15 |
| 15 class Transform3DRecorder { | 16 class Transform3DRecorder { |
| 17 STACK_ALLOCATED(); |
| 16 public: | 18 public: |
| 17 Transform3DRecorder(GraphicsContext&, const DisplayItemClientWrapper&, Displ
ayItem::Type, const TransformationMatrix&); | 19 Transform3DRecorder(GraphicsContext&, const DisplayItemClientWrapper&, Displ
ayItem::Type, const TransformationMatrix&); |
| 18 ~Transform3DRecorder(); | 20 ~Transform3DRecorder(); |
| 19 | 21 |
| 20 private: | 22 private: |
| 21 GraphicsContext& m_context; | 23 GraphicsContext& m_context; |
| 22 DisplayItemClientWrapper m_client; | 24 DisplayItemClientWrapper m_client; |
| 23 DisplayItem::Type m_type; | 25 DisplayItem::Type m_type; |
| 24 bool m_skipRecordingForIdentityTransform; | 26 bool m_skipRecordingForIdentityTransform; |
| 25 }; | 27 }; |
| 26 | 28 |
| 27 } // namespace blink | 29 } // namespace blink |
| 28 | 30 |
| 29 #endif // Transform3DRecorder_h | 31 #endif // Transform3DRecorder_h |
| OLD | NEW |