| 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));
|
| +}
|
|
|