diff options
author | epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-05-18 20:23:30 +0000 |
---|---|---|
committer | epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-05-18 20:23:30 +0000 |
commit | 1f75399dced577f467608eadb05ff41de141e4c2 (patch) | |
tree | c5c83f9b572c4a1ddec16dd0cbe5b68a29138767 /tests | |
parent | bad8c87812234117d3dc411382fca60e2e868477 (diff) |
fix PathTest for SKIA_SCALAR=fixed
http://codereview.appspot.com/4528083/
git-svn-id: http://skia.googlecode.com/svn/trunk@1371 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests')
-rw-r--r-- | tests/PathTest.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/PathTest.cpp b/tests/PathTest.cpp index 844b5934e1..7e4e6bc6f0 100644 --- a/tests/PathTest.cpp +++ b/tests/PathTest.cpp @@ -86,14 +86,12 @@ static void test_convexity2(skiatest::Reporter* reporter) { spiral.close(); check_convexity(reporter, spiral, SkPath::kConcave_Convexity); - // TODO(reed): We evaluate this path as concave for SK_SCALAR_IS_FLOAT, - // but convex for SK_SCALAR_IS_FIXED. SkPath dent; - dent.moveTo(0, 0); - dent.lineTo(100, 100); - dent.lineTo(0, 100); - dent.lineTo(-50, 200); - dent.lineTo(-200, 100); + dent.moveTo(SkIntToScalar(0), SkIntToScalar(0)); + dent.lineTo(SkIntToScalar(100), SkIntToScalar(100)); + dent.lineTo(SkIntToScalar(0), SkIntToScalar(100)); + dent.lineTo(SkIntToScalar(-50), SkIntToScalar(200)); + dent.lineTo(SkIntToScalar(-200), SkIntToScalar(100)); dent.close(); check_convexity(reporter, dent, SkPath::kConcave_Convexity); } |