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
This commit is contained in:
epoger@google.com 2011-05-18 20:23:30 +00:00
parent bad8c87812
commit 1f75399dce

View File

@ -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);
}