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