Fix SkScalar values in ClipperTest.cpp; these were breaking one Windows buildbot
authorepoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 11 Jan 2012 20:43:29 +0000 (20:43 +0000)
committerepoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 11 Jan 2012 20:43:29 +0000 (20:43 +0000)
TBR=reed
Review URL: http://codereview.appspot.com/5535052

git-svn-id: http://skia.googlecode.com/svn/trunk@3020 2bbb7eff-a529-9590-31e7-b0007b416f81

tests/ClipperTest.cpp

index f6333ba..7bb2254 100644 (file)
@@ -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.