From ba7983e55ce15ddcd5534011935178760164fb9d Mon Sep 17 00:00:00 2001 From: "bungeman@google.com" Date: Wed, 13 Jul 2011 20:18:16 +0000 Subject: [PATCH] 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 --- tests/MatrixTest.cpp | 4 +--- 1 file changed, 1 insertion(+), 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));