OLD | NEW |
---|---|
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 CC_TEST_GEOMETRY_TEST_UTILS_H_ | 5 #ifndef CC_TEST_GEOMETRY_TEST_UTILS_H_ |
6 #define CC_TEST_GEOMETRY_TEST_UTILS_H_ | 6 #define CC_TEST_GEOMETRY_TEST_UTILS_H_ |
7 | 7 |
8 namespace gfx { | 8 namespace gfx { |
9 class Transform; | 9 class Transform; |
10 } | 10 } |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
66 | 66 |
67 void ExpectTransformationMatrixEq(const WebKit::WebTransformationMatrix& expecte d, | 67 void ExpectTransformationMatrixEq(const WebKit::WebTransformationMatrix& expecte d, |
68 const WebKit::WebTransformationMatrix& actual) ; | 68 const WebKit::WebTransformationMatrix& actual) ; |
69 | 69 |
70 #define EXPECT_TRANSFORMATION_MATRIX_EQ(expected, actual) \ | 70 #define EXPECT_TRANSFORMATION_MATRIX_EQ(expected, actual) \ |
71 { \ | 71 { \ |
72 SCOPED_TRACE(""); \ | 72 SCOPED_TRACE(""); \ |
73 cc::ExpectTransformationMatrixEq(expected, actual); \ | 73 cc::ExpectTransformationMatrixEq(expected, actual); \ |
74 } | 74 } |
75 | 75 |
76 // Should be used in test code only, for convenience. Production code should use | |
77 // the gfx::Transform::GetInverse() API. | |
78 gfx::Transform inverse(const gfx::Transform& transform); | |
danakj
2012/12/19 05:23:06
how about InvertTransform()?
a) we don't have to
| |
79 | |
76 } // namespace cc | 80 } // namespace cc |
77 | 81 |
78 #endif // CC_TEST_GEOMETRY_TEST_UTILS_H_ | 82 #endif // CC_TEST_GEOMETRY_TEST_UTILS_H_ |
OLD | NEW |