use SkIntToScalar(10) instead of 10 for parameters (for scalar==fixed)
git-svn-id: http://skia.googlecode.com/svn/trunk@3002 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
3e71a88762
commit
e354397dd9
@ -351,16 +351,16 @@ static void test_convexity(skiatest::Reporter* reporter) {
|
||||
SkPath path;
|
||||
|
||||
REPORTER_ASSERT(reporter, V == SkPath::ComputeConvexity(path));
|
||||
path.addCircle(0, 0, 10);
|
||||
path.addCircle(0, 0, SkIntToScalar(10));
|
||||
REPORTER_ASSERT(reporter, V == SkPath::ComputeConvexity(path));
|
||||
path.addCircle(0, 0, 10); // 2nd circle
|
||||
path.addCircle(0, 0, SkIntToScalar(10)); // 2nd circle
|
||||
REPORTER_ASSERT(reporter, C == SkPath::ComputeConvexity(path));
|
||||
path.reset();
|
||||
path.addRect(0, 0, 10, 10, SkPath::kCCW_Direction);
|
||||
path.addRect(0, 0, SkIntToScalar(10), SkIntToScalar(10), SkPath::kCCW_Direction);
|
||||
REPORTER_ASSERT(reporter, V == SkPath::ComputeConvexity(path));
|
||||
REPORTER_ASSERT(reporter, path.cheapIsDirection(SkPath::kCCW_Direction));
|
||||
path.reset();
|
||||
path.addRect(0, 0, 10, 10, SkPath::kCW_Direction);
|
||||
path.addRect(0, 0, SkIntToScalar(10), SkIntToScalar(10), SkPath::kCW_Direction);
|
||||
REPORTER_ASSERT(reporter, V == SkPath::ComputeConvexity(path));
|
||||
REPORTER_ASSERT(reporter, path.cheapIsDirection(SkPath::kCW_Direction));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user