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

Unified Diff: tests/MatrixTest.cpp

Issue 293693002: Try out SkMatrix::Concat. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: move to header Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/record/SkRecordDraw.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/MatrixTest.cpp
diff --git a/tests/MatrixTest.cpp b/tests/MatrixTest.cpp
index 9e39d5b22b19c146448d0524f8f9f0f32b381e88..ab406fb65d7dc78ddff5fd2542c6bf32e1a6b97d 100644
--- a/tests/MatrixTest.cpp
+++ b/tests/MatrixTest.cpp
@@ -785,3 +785,16 @@ DEF_TEST(Matrix, reporter) {
test_matrix_decomposition(reporter);
test_matrix_homogeneous(reporter);
}
+
+DEF_TEST(Matrix_Concat, r) {
+ SkMatrix a;
+ a.setTranslate(10, 20);
+
+ SkMatrix b;
+ b.setScale(3, 5);
+
+ SkMatrix expected;
+ expected.setConcat(a,b);
+
+ REPORTER_ASSERT(r, expected == SkMatrix::Concat(a, b));
+}
« no previous file with comments | « src/record/SkRecordDraw.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698