aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/ClipperTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ClipperTest.cpp')
-rw-r--r--tests/ClipperTest.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/ClipperTest.cpp b/tests/ClipperTest.cpp
index f6333ba645..7bb225417e 100644
--- a/tests/ClipperTest.cpp
+++ b/tests/ClipperTest.cpp
@@ -14,13 +14,13 @@ static void test_edgeclipper(skiatest::Reporter* reporter) {
SkEdgeClipper clipper;
const SkPoint pts[] = {
- { 3.0995476e+010, 42.929779 },
- { -3.0995163e+010, 51.050385 },
- { -3.0995157e+010, 51.050392 },
- { -3.0995134e+010, 51.050400 },
+ { SkFloatToScalar(3.0995476e+010), SkFloatToScalar(42.929779) },
+ { SkFloatToScalar(-3.0995163e+010), SkFloatToScalar(51.050385) },
+ { SkFloatToScalar(-3.0995157e+010), SkFloatToScalar(51.050392) },
+ { SkFloatToScalar(-3.0995134e+010), SkFloatToScalar(51.050400) },
};
- const SkRect clip = { 0, 0, 300, 200 };
+ const SkRect clip = { 0, 0, SkIntToScalar(300), SkIntToScalar(200) };
// this should not assert, even though our choppers do a poor numerical
// job when computing their t values.