| Index: third_party/WebKit/Source/platform/transforms/TransformationMatrix.h
|
| diff --git a/third_party/WebKit/Source/platform/transforms/TransformationMatrix.h b/third_party/WebKit/Source/platform/transforms/TransformationMatrix.h
|
| index f11d193a62e897132eb6269c26ef3f06a19cad78..7e2cf9d89a717c5243e47634fc1be9aabfef21d8 100644
|
| --- a/third_party/WebKit/Source/platform/transforms/TransformationMatrix.h
|
| +++ b/third_party/WebKit/Source/platform/transforms/TransformationMatrix.h
|
| @@ -33,6 +33,7 @@
|
| #include "wtf/Alignment.h"
|
| #include "wtf/Allocator.h"
|
| #include "wtf/CPU.h"
|
| +#include "wtf/PassOwnPtr.h"
|
| #include <string.h> // for memcpy
|
|
|
| namespace blink {
|
| @@ -60,6 +61,26 @@ public:
|
| typedef double Matrix4[4][4];
|
| #endif
|
|
|
| + static PassOwnPtr<TransformationMatrix> create()
|
| + {
|
| + return adoptPtr(new TransformationMatrix());
|
| + }
|
| + static PassOwnPtr<TransformationMatrix> create(const TransformationMatrix& t)
|
| + {
|
| + return adoptPtr(new TransformationMatrix(t));
|
| + }
|
| + static PassOwnPtr<TransformationMatrix> create(double a, double b, double c, double d, double e, double f)
|
| + {
|
| + return adoptPtr(new TransformationMatrix(a, b, c, d, e, f));
|
| + }
|
| + static PassOwnPtr<TransformationMatrix> create(double m11, double m12, double m13, double m14,
|
| + double m21, double m22, double m23, double m24,
|
| + double m31, double m32, double m33, double m34,
|
| + double m41, double m42, double m43, double m44)
|
| + {
|
| + return adoptPtr(new TransformationMatrix(m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34, m41, m42, m43, m44));
|
| + }
|
| +
|
| TransformationMatrix()
|
| {
|
| checkAlignment();
|
|
|