Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(333)

Side by Side Diff: cc/test/geometry_test_utils.h

Issue 11644008: Migrate from MathUtil::inverse() to gfx::Transform::GetInverse() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch for landing Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/occlusion_tracker.cc ('k') | cc/test/geometry_test_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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);
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_
OLDNEW
« no previous file with comments | « cc/occlusion_tracker.cc ('k') | cc/test/geometry_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698