aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-01-30 15:47:42 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-01-30 15:47:42 +0000
commite40591d5484762067f976d979c506f126c7779e1 (patch)
treecee989338e547f88467e502cf9d7ff00ecaba126 /tests
parenta8e66f76d9333939d7cbbc9d99188901fde91291 (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.cpp2
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