| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 CSSMatrixTransformComponent_h | 5 #ifndef CSSMatrixTransformComponent_h |
| 6 #define CSSMatrixTransformComponent_h | 6 #define CSSMatrixTransformComponent_h |
| 7 | 7 |
| 8 #include <memory> |
| 8 #include "core/css/cssom/CSSTransformComponent.h" | 9 #include "core/css/cssom/CSSTransformComponent.h" |
| 9 #include "platform/transforms/TransformationMatrix.h" | 10 #include "platform/transforms/TransformationMatrix.h" |
| 10 #include <memory> | |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class CORE_EXPORT CSSMatrixTransformComponent final | 14 class CORE_EXPORT CSSMatrixTransformComponent final |
| 15 : public CSSTransformComponent { | 15 : public CSSTransformComponent { |
| 16 WTF_MAKE_NONCOPYABLE(CSSMatrixTransformComponent); | 16 WTF_MAKE_NONCOPYABLE(CSSMatrixTransformComponent); |
| 17 DEFINE_WRAPPERTYPEINFO(); | 17 DEFINE_WRAPPERTYPEINFO(); |
| 18 | 18 |
| 19 public: | 19 public: |
| 20 static CSSMatrixTransformComponent* create(double a, | 20 static CSSMatrixTransformComponent* create(double a, |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 // supports 16-byte alignment but Oilpan doesn't. So we use an std::unique_ptr | 162 // supports 16-byte alignment but Oilpan doesn't. So we use an std::unique_ptr |
| 163 // to allocate TransformationMatrix on PartitionAlloc. | 163 // to allocate TransformationMatrix on PartitionAlloc. |
| 164 // TODO(oilpan): Oilpan should support 16-byte aligned allocations. | 164 // TODO(oilpan): Oilpan should support 16-byte aligned allocations. |
| 165 std::unique_ptr<const TransformationMatrix> m_matrix; | 165 std::unique_ptr<const TransformationMatrix> m_matrix; |
| 166 bool m_is2D; | 166 bool m_is2D; |
| 167 }; | 167 }; |
| 168 | 168 |
| 169 } // namespace blink | 169 } // namespace blink |
| 170 | 170 |
| 171 #endif | 171 #endif |
| OLD | NEW |