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 DOMMatrixReadOnly_h | 5 #ifndef DOMMatrixReadOnly_h |
6 #define DOMMatrixReadOnly_h | 6 #define DOMMatrixReadOnly_h |
7 | 7 |
| 8 #include <memory> |
8 #include "bindings/core/v8/ExceptionState.h" | 9 #include "bindings/core/v8/ExceptionState.h" |
9 #include "bindings/core/v8/ScriptWrappable.h" | 10 #include "bindings/core/v8/ScriptWrappable.h" |
10 #include "core/dom/DOMTypedArray.h" | 11 #include "core/dom/DOMTypedArray.h" |
11 #include "platform/heap/Handle.h" | 12 #include "platform/heap/Handle.h" |
12 #include "platform/transforms/TransformationMatrix.h" | 13 #include "platform/transforms/TransformationMatrix.h" |
13 #include <memory> | |
14 | 14 |
15 namespace blink { | 15 namespace blink { |
16 | 16 |
17 class DOMMatrix; | 17 class DOMMatrix; |
18 class DOMMatrixInit; | 18 class DOMMatrixInit; |
19 class DOMPoint; | 19 class DOMPoint; |
20 class DOMPointInit; | 20 class DOMPointInit; |
21 | 21 |
22 class CORE_EXPORT DOMMatrixReadOnly | 22 class CORE_EXPORT DOMMatrixReadOnly |
23 : public GarbageCollectedFinalized<DOMMatrixReadOnly>, | 23 : public GarbageCollectedFinalized<DOMMatrixReadOnly>, |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 // supports 16-byte alignment but Oilpan doesn't. So we use an std::unique_ptr | 131 // supports 16-byte alignment but Oilpan doesn't. So we use an std::unique_ptr |
132 // to allocate TransformationMatrix on PartitionAlloc. | 132 // to allocate TransformationMatrix on PartitionAlloc. |
133 // TODO(oilpan): Oilpan should support 16-byte aligned allocations. | 133 // TODO(oilpan): Oilpan should support 16-byte aligned allocations. |
134 std::unique_ptr<TransformationMatrix> m_matrix; | 134 std::unique_ptr<TransformationMatrix> m_matrix; |
135 bool m_is2D; | 135 bool m_is2D; |
136 }; | 136 }; |
137 | 137 |
138 } // namespace blink | 138 } // namespace blink |
139 | 139 |
140 #endif | 140 #endif |
OLD | NEW |