| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2005, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006 Apple Computer, Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 USING_FAST_MALLOC(TransformationMatrix); | 56 USING_FAST_MALLOC(TransformationMatrix); |
| 57 | 57 |
| 58 public: | 58 public: |
| 59 #if defined(TRANSFORMATION_MATRIX_USE_X86_64_SSE2) | 59 #if defined(TRANSFORMATION_MATRIX_USE_X86_64_SSE2) |
| 60 typedef WTF_ALIGNED(double, Matrix4[4][4], 16); | 60 typedef WTF_ALIGNED(double, Matrix4[4][4], 16); |
| 61 #else | 61 #else |
| 62 typedef double Matrix4[4][4]; | 62 typedef double Matrix4[4][4]; |
| 63 #endif | 63 #endif |
| 64 | 64 |
| 65 static std::unique_ptr<TransformationMatrix> create() { | 65 static std::unique_ptr<TransformationMatrix> create() { |
| 66 return wrapUnique(new TransformationMatrix()); | 66 return makeUnique<TransformationMatrix>(); |
| 67 } | 67 } |
| 68 static std::unique_ptr<TransformationMatrix> create( | 68 static std::unique_ptr<TransformationMatrix> create( |
| 69 const TransformationMatrix& t) { | 69 const TransformationMatrix& t) { |
| 70 return wrapUnique(new TransformationMatrix(t)); | 70 return makeUnique<TransformationMatrix>(t); |
| 71 } | 71 } |
| 72 static std::unique_ptr<TransformationMatrix> create(double a, | 72 static std::unique_ptr<TransformationMatrix> create(double a, |
| 73 double b, | 73 double b, |
| 74 double c, | 74 double c, |
| 75 double d, | 75 double d, |
| 76 double e, | 76 double e, |
| 77 double f) { | 77 double f) { |
| 78 return wrapUnique(new TransformationMatrix(a, b, c, d, e, f)); | 78 return makeUnique<TransformationMatrix>(a, b, c, d, e, f); |
| 79 } | 79 } |
| 80 static std::unique_ptr<TransformationMatrix> create(double m11, | 80 static std::unique_ptr<TransformationMatrix> create(double m11, |
| 81 double m12, | 81 double m12, |
| 82 double m13, | 82 double m13, |
| 83 double m14, | 83 double m14, |
| 84 double m21, | 84 double m21, |
| 85 double m22, | 85 double m22, |
| 86 double m23, | 86 double m23, |
| 87 double m24, | 87 double m24, |
| 88 double m31, | 88 double m31, |
| (...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 Matrix4 m_matrix; | 489 Matrix4 m_matrix; |
| 490 }; | 490 }; |
| 491 | 491 |
| 492 // Redeclared here to avoid ODR issues. | 492 // Redeclared here to avoid ODR issues. |
| 493 // See platform/testing/TransformPrinters.h. | 493 // See platform/testing/TransformPrinters.h. |
| 494 void PrintTo(const TransformationMatrix&, std::ostream*); | 494 void PrintTo(const TransformationMatrix&, std::ostream*); |
| 495 | 495 |
| 496 } // namespace blink | 496 } // namespace blink |
| 497 | 497 |
| 498 #endif // TransformationMatrix_h | 498 #endif // TransformationMatrix_h |
| OLD | NEW |