Lines Matching defs:dir

1061     SkPathFirstDirection dir = SkPathPriv::ComputeFirstDirection(copy);
1062 if (dir != SkPathFirstDirection::kUnknown) {
1063 REPORTER_ASSERT(reporter, dir == expected);
1603 SkPathFirstDirection dir = SkPathPriv::ComputeFirstDirection(copy);
1604 bool foundDir = dir != SkPathFirstDirection::kUnknown;
1607 REPORTER_ASSERT(reporter, !foundDir || gRec[i].fExpectedDirection == dir);
1889 SkPathDirection dir = d ? SkPathDirection::kCCW : SkPathDirection::kCW;
1891 path.addRect(kBaseRect, dir);
1896 path.addCircle(kCircleC.fX, kCircleC.fY, circleR, dir);
1901 path.addRoundRect(kBaseRect, kRRRadii[0], kRRRadii[1], dir);
2215 const SkRect& rect, SkPathDirection dir, unsigned start) {
2223 REPORTER_ASSERT(reporter, d == dir);
2236 for (auto dir : {SkPathDirection::kCCW, SkPathDirection::kCW}) {
2238 path.addRect(testRect, dir, start);
2239 check_simple_rect(reporter, path, true, testRect, dir, start);
2241 check_simple_rect(reporter, path, true, testRect, dir, start);
2251 path2.addRect(testRect, dir, start);
2275 check_simple_rect(reporter, path2, false, testRect, dir, start);
2278 check_simple_rect(reporter, path2, true, testRect, dir, start);
2281 path2.addRect(emptyRect, dir, start);
2287 path2.addRect(degenRect, dir, start);
2293 path2.addRect(degenRect, dir, start);
2296 // An inverted rect makes a rect path, but changes the winding dir and start point.
2297 SkPathDirection swapDir = (dir == SkPathDirection::kCW)
2305 path2.addRect(swapRect, dir, start);
2310 path2.addRect(swapRect, dir, start);
2321 SkPathDirection dir;
2324 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path, false, &rect, &dir, &start));
2325 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path, true, &rect, &dir, &start));
2333 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path, false, &rect, &dir, &start));
2334 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path, true, &rect, &dir, &start));
2342 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path, false, &rect, &dir, &start));
2343 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path, true, &rect, &dir, &start));
2351 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path, false, &rect, &dir, &start));
2352 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path, true, &rect, &dir, &start));
3311 SkPathFirstDirection dir) {
3318 if (SkPathFirstDirection::kCCW == dir) {
3319 dir = SkPathFirstDirection::kCW;
3321 REPORTER_ASSERT(reporter, SkPathFirstDirection::kCW == dir);
3322 dir = SkPathFirstDirection::kCCW;
3324 check_for_circle(reporter, tmp, false, dir);
3329 SkPathFirstDirection dir) {
3336 check_for_circle(reporter, tmp, true, dir);
3344 check_for_circle(reporter, tmp, true, dir);
3349 SkPathFirstDirection dir) {
3360 check_for_circle(reporter, tmp, true, dir);
3362 check_for_circle(reporter, tmp, false, dir);
3369 SkPathFirstDirection dir) {
3375 if (SkPathFirstDirection::kCW == dir) {
3376 dir = SkPathFirstDirection::kCCW;
3378 REPORTER_ASSERT(reporter, SkPathFirstDirection::kCCW == dir);
3379 dir = SkPathFirstDirection::kCW;
3381 check_for_circle(reporter, tmp, true, dir);
3386 SkPathFirstDirection dir) {
3393 if (SkPathFirstDirection::kCW == dir) {
3394 dir = SkPathFirstDirection::kCCW;
3396 REPORTER_ASSERT(reporter, SkPathFirstDirection::kCCW == dir);
3397 dir = SkPathFirstDirection::kCW;
3400 check_for_circle(reporter, tmp, true, dir);
3405 SkPathFirstDirection dir) {
3413 check_for_circle(reporter, tmp, true, dir);
3418 const SkPathFirstDirection dir = SkPathPriv::AsFirstDirection(inDir);
3424 check_for_circle(reporter, path, true, dir);
3425 test_circle_rotate(reporter, path, dir);
3426 test_circle_translate(reporter, path, dir);
3427 test_circle_skew(reporter, path, dir);
3428 test_circle_mirror_x(reporter, path, dir);
3429 test_circle_mirror_y(reporter, path, dir);
3430 test_circle_mirror_xy(reporter, path, dir);
3437 check_for_circle(reporter, path, true, dir);
3438 test_circle_rotate(reporter, path, dir);
3439 test_circle_translate(reporter, path, dir);
3440 test_circle_skew(reporter, path, dir);
3441 test_circle_mirror_x(reporter, path, dir);
3442 test_circle_mirror_y(reporter, path, dir);
3443 test_circle_mirror_xy(reporter, path, dir);
3449 test_circle_rotate(reporter, path, dir);
3450 test_circle_translate(reporter, path, dir);
3451 test_circle_skew(reporter, path, dir);
3452 test_circle_mirror_x(reporter, path, dir);
3453 test_circle_mirror_y(reporter, path, dir);
3454 test_circle_mirror_xy(reporter, path, dir);
3529 SkPathDirection dir = SkPathDirection::kCCW;
3534 // Defaults to dir = CW and start = 1
3542 REPORTER_ASSERT(reporter, SkPathPriv::IsOval(tmp, nullptr, &dir, &start));
3544 REPORTER_ASSERT(reporter, SkPathDirection::kCW == dir);
3582 REPORTER_ASSERT(reporter, SkPathPriv::IsOval(path, nullptr, &dir, &start));
3583 REPORTER_ASSERT(reporter, SkPathDirection::kCW == dir);
3602 SkPathDirection dir) {
3605 SkPathPriv::ComputeFirstDirection(*path) == SkPathPriv::AsFirstDirection(dir));
3612 SkPathDirection dir) {
3615 SkPathPriv::ComputeFirstDirection(*path) == SkPathPriv::AsFirstDirection(dir));
3656 SkPathDirection dir;
3657 REPORTER_ASSERT(reporter, p.isRect(nullptr, &closed, &dir));
3659 REPORTER_ASSERT(reporter, SkPathDirection::kCW == dir);
5704 for (auto dir : {SkPathDirection::kCW, SkPathDirection::kCCW}) {
5705 int increment = dir == SkPathDirection::kCW ? 1 : 3;
5708 path.addRect(r, dir, i);