diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-01-30 15:47:42 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-01-30 15:47:42 +0000 |
commit | e40591d5484762067f976d979c506f126c7779e1 (patch) | |
tree | cee989338e547f88467e502cf9d7ff00ecaba126 /tests | |
parent | a8e66f76d9333939d7cbbc9d99188901fde91291 (diff) |
return if we're invertible for the fast scale+trans case when we have no inverse
matrix to return.
Review URL: https://codereview.appspot.com/7231063
git-svn-id: http://skia.googlecode.com/svn/trunk@7464 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests')
-rw-r--r-- | tests/MatrixTest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/MatrixTest.cpp b/tests/MatrixTest.cpp index 1987f3bd32..56292dc525 100644 --- a/tests/MatrixTest.cpp +++ b/tests/MatrixTest.cpp @@ -378,8 +378,10 @@ static void TestMatrix(skiatest::Reporter* reporter) { test_flatten(reporter, iden2); mat.setScale(0, SK_Scalar1); + REPORTER_ASSERT(reporter, !mat.invert(NULL)); REPORTER_ASSERT(reporter, !mat.invert(&inverse)); mat.setScale(SK_Scalar1, 0); + REPORTER_ASSERT(reporter, !mat.invert(NULL)); REPORTER_ASSERT(reporter, !mat.invert(&inverse)); // rectStaysRect test |