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 "bindings/core/v8/ExceptionState.h" | 8 #include "bindings/core/v8/ExceptionState.h" |
9 #include "bindings/core/v8/ScriptWrappable.h" | 9 #include "bindings/core/v8/ScriptWrappable.h" |
10 #include "core/dom/DOMTypedArray.h" | 10 #include "core/dom/DOMTypedArray.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 double m41() const { return m_matrix->m41(); } | 51 double m41() const { return m_matrix->m41(); } |
52 double m42() const { return m_matrix->m42(); } | 52 double m42() const { return m_matrix->m42(); } |
53 double m43() const { return m_matrix->m43(); } | 53 double m43() const { return m_matrix->m43(); } |
54 double m44() const { return m_matrix->m44(); } | 54 double m44() const { return m_matrix->m44(); } |
55 | 55 |
56 bool is2D() const; | 56 bool is2D() const; |
57 bool isIdentity() const; | 57 bool isIdentity() const; |
58 | 58 |
59 DOMMatrix* multiply(DOMMatrixInit&, ExceptionState&); | 59 DOMMatrix* multiply(DOMMatrixInit&, ExceptionState&); |
60 DOMMatrix* translate(double tx, double ty, double tz = 0); | 60 DOMMatrix* translate(double tx, double ty, double tz = 0); |
61 DOMMatrix* scale(double scale, double ox = 0, double oy = 0); | 61 DOMMatrix* scale(double sx = 1); |
| 62 DOMMatrix* scale(double sx, |
| 63 double sy, |
| 64 double sz = 1, |
| 65 double ox = 0, |
| 66 double oy = 0, |
| 67 double oz = 0); |
62 DOMMatrix* scale3d(double scale, double ox = 0, double oy = 0, double oz = 0); | 68 DOMMatrix* scale3d(double scale, double ox = 0, double oy = 0, double oz = 0); |
63 DOMMatrix* scaleNonUniform(double sx, | |
64 double sy = 1, | |
65 double sz = 1, | |
66 double ox = 0, | |
67 double oy = 0, | |
68 double oz = 0); | |
69 DOMMatrix* skewX(double sx); | 69 DOMMatrix* skewX(double sx); |
70 DOMMatrix* skewY(double sy); | 70 DOMMatrix* skewY(double sy); |
71 DOMMatrix* flipX(); | 71 DOMMatrix* flipX(); |
72 DOMMatrix* flipY(); | 72 DOMMatrix* flipY(); |
73 DOMMatrix* inverse(); | 73 DOMMatrix* inverse(); |
74 | 74 |
75 DOMFloat32Array* toFloat32Array() const; | 75 DOMFloat32Array* toFloat32Array() const; |
76 DOMFloat64Array* toFloat64Array() const; | 76 DOMFloat64Array* toFloat64Array() const; |
77 | 77 |
78 const String toString() const; | 78 const String toString() const; |
(...skipping 29 matching lines...) Expand all Loading... |
108 // supports 16-byte alignment but Oilpan doesn't. So we use an std::unique_ptr | 108 // supports 16-byte alignment but Oilpan doesn't. So we use an std::unique_ptr |
109 // to allocate TransformationMatrix on PartitionAlloc. | 109 // to allocate TransformationMatrix on PartitionAlloc. |
110 // TODO(oilpan): Oilpan should support 16-byte aligned allocations. | 110 // TODO(oilpan): Oilpan should support 16-byte aligned allocations. |
111 std::unique_ptr<TransformationMatrix> m_matrix; | 111 std::unique_ptr<TransformationMatrix> m_matrix; |
112 bool m_is2D; | 112 bool m_is2D; |
113 }; | 113 }; |
114 | 114 |
115 } // namespace blink | 115 } // namespace blink |
116 | 116 |
117 #endif | 117 #endif |
OLD | NEW |