diff options
author | epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-01-11 20:43:29 +0000 |
---|---|---|
committer | epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-01-11 20:43:29 +0000 |
commit | dc7a506018719c7b640caf6894fab96d41cdaf81 (patch) | |
tree | 67f0f0e03b407ba43d6dc3209924026d49da2585 /tests/ClipperTest.cpp | |
parent | 054ff1efa4f9187ce7fd20aaf3aed7cecf14e12b (diff) |
Fix SkScalar values in ClipperTest.cpp; these were breaking one Windows buildbot
TBR=reed
Review URL: http://codereview.appspot.com/5535052
git-svn-id: http://skia.googlecode.com/svn/trunk@3020 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/ClipperTest.cpp')
-rw-r--r-- | tests/ClipperTest.cpp | 10 |
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. |