| Index: tests/MatrixTest.cpp
|
| diff --git a/tests/MatrixTest.cpp b/tests/MatrixTest.cpp
|
| index 95d33acabd7ac42e0545efbc93b2a84d32ca668b..72e0dcc0214be24967c4f65ef0b78557eae0a2d5 100644
|
| --- a/tests/MatrixTest.cpp
|
| +++ b/tests/MatrixTest.cpp
|
| @@ -270,8 +270,8 @@
|
| mat.mapVectors(vectors, SK_ARRAY_COUNT(vectors));
|
| for (size_t i = 0; i < SK_ARRAY_COUNT(vectors); ++i) {
|
| SkScalar d = vectors[i].length();
|
| - REPORTER_ASSERT(reporter, SkScalarDiv(d, maxScale) < gVectorScaleTol);
|
| - REPORTER_ASSERT(reporter, SkScalarDiv(minScale, d) < gVectorScaleTol);
|
| + REPORTER_ASSERT(reporter, d / maxScale < gVectorScaleTol);
|
| + REPORTER_ASSERT(reporter, minScale / d < gVectorScaleTol);
|
| if (max < d) {
|
| max = d;
|
| }
|
| @@ -279,8 +279,8 @@
|
| min = d;
|
| }
|
| }
|
| - REPORTER_ASSERT(reporter, SkScalarDiv(max, maxScale) >= gCloseScaleTol);
|
| - REPORTER_ASSERT(reporter, SkScalarDiv(minScale, min) >= gCloseScaleTol);
|
| + REPORTER_ASSERT(reporter, max / maxScale >= gCloseScaleTol);
|
| + REPORTER_ASSERT(reporter, minScale / min >= gCloseScaleTol);
|
| }
|
| }
|
|
|
|
|