From 67d71c898249a7af3523b16c6a69895a63bfae0a Mon Sep 17 00:00:00 2001 From: reed Date: Tue, 12 May 2015 09:47:22 -0700 Subject: stop calling SkScalarDiv BUG=skia: TBR= Review URL: https://codereview.chromium.org/1135053002 --- tests/PathCoverageTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/PathCoverageTest.cpp') diff --git a/tests/PathCoverageTest.cpp b/tests/PathCoverageTest.cpp index 0e4a1539f2..303ddcc4cb 100644 --- a/tests/PathCoverageTest.cpp +++ b/tests/PathCoverageTest.cpp @@ -60,7 +60,7 @@ static inline uint32_t compute_pointCount(SkScalar d, SkScalar tol) { if (d < tol) { return 1; } else { - int temp = SkScalarCeilToInt(SkScalarSqrt(SkScalarDiv(d, tol))); + int temp = SkScalarCeilToInt(SkScalarSqrt(d / tol)); uint32_t count = SkMin32(SkNextPow2(temp), MAX_POINTS_PER_CURVE); return count; } -- cgit v1.2.3