aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/MatrixTest.cpp
diff options
context:
space:
mode:
authorGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-07-13 20:18:16 +0000
committerGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-07-13 20:18:16 +0000
commitba7983e55ce15ddcd5534011935178760164fb9d (patch)
treea13262e8e8bd61b8dbd7f64ce6a72d06dfc0b505 /tests/MatrixTest.cpp
parent1ddd7c39289b7dd18537fdac4b630e378cd78842 (diff)
Fix build break from 1851.
In fixed point, kMPersp2 is a magic number, not SK_Scalar1. git-svn-id: http://skia.googlecode.com/svn/trunk@1852 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/MatrixTest.cpp')
-rw-r--r--tests/MatrixTest.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/MatrixTest.cpp b/tests/MatrixTest.cpp
index 5eada0e645..8632e8d339 100644
--- a/tests/MatrixTest.cpp
+++ b/tests/MatrixTest.cpp
@@ -118,15 +118,13 @@ void TestMatrix(skiatest::Reporter* reporter) {
}
}
+ mat.reset();
mat.set(SkMatrix::kMScaleX, SkIntToScalar(1));
mat.set(SkMatrix::kMSkewX, SkIntToScalar(2));
mat.set(SkMatrix::kMTransX, SkIntToScalar(3));
mat.set(SkMatrix::kMSkewY, SkIntToScalar(4));
mat.set(SkMatrix::kMScaleY, SkIntToScalar(5));
mat.set(SkMatrix::kMTransY, SkIntToScalar(6));
- mat.set(SkMatrix::kMPersp0, SkIntToScalar(0));
- mat.set(SkMatrix::kMPersp1, SkIntToScalar(0));
- mat.set(SkMatrix::kMPersp2, SkIntToScalar(1));
SkScalar affine[6];
REPORTER_ASSERT(reporter, mat.asAffine(affine));