Lines Matching refs:SkPathFirstDirection
1051 const SkPathFirstDirection kDontCheckDir = static_cast<SkPathFirstDirection>(3);
1054 SkPathFirstDirection expected) { in check_direction()
1061 SkPathFirstDirection dir = SkPathPriv::ComputeFirstDirection(copy); in check_direction()
1062 if (dir != SkPathFirstDirection::kUnknown) { in check_direction()
1071 SkPathPriv::ComputeFirstDirection(path) == SkPathFirstDirection::kUnknown); in test_direction()
1086 SkPathPriv::ComputeFirstDirection(path) == SkPathFirstDirection::kUnknown); in test_direction()
1102 check_direction(reporter, path, SkPathFirstDirection::kCW); in test_direction()
1118 check_direction(reporter, path, SkPathFirstDirection::kCCW); in test_direction()
1126 check_direction(reporter, path, SkPathFirstDirection::kCW); in test_direction()
1131 check_direction(reporter, path, SkPathFirstDirection::kCCW); in test_direction()
1139 check_direction(reporter, path, SkPathFirstDirection::kCCW); in test_direction()
1144 check_direction(reporter, path, SkPathFirstDirection::kCW); in test_direction()
1151 check_direction(reporter, path, SkPathFirstDirection::kCCW); in test_direction()
1327 check_direction(reporter, tinyConvexPolygon, SkPathFirstDirection::kCW); in test_path_crbug389050()
1335 check_direction(reporter, platTriangle, SkPathFirstDirection::kCW); in test_path_crbug389050()
1343 check_direction(reporter, platTriangle, SkPathFirstDirection::kCW); in test_path_crbug389050()
1351 check_direction(reporter, pt, SkPathFirstDirection::kUnknown); in test_convexity2()
1358 check_direction(reporter, line, SkPathFirstDirection::kUnknown); in test_convexity2()
1366 check_direction(reporter, triLeft, SkPathFirstDirection::kCW); in test_convexity2()
1374 check_direction(reporter, triRight, SkPathFirstDirection::kCCW); in test_convexity2()
1383 check_direction(reporter, square, SkPathFirstDirection::kCW); in test_convexity2()
1400 check_direction(reporter, redundantSquare, SkPathFirstDirection::kCW); in test_convexity2()
1439 check_direction(reporter, dent, SkPathFirstDirection::kCW); in test_convexity2()
1467 check_direction(reporter, degenerateConcave, SkPathFirstDirection::kUnknown); in test_convexity2()
1568 … REPORTER_ASSERT(reporter, SkPathPriv::ComputeFirstDirection(path) == SkPathFirstDirection::kCCW); in test_convexity()
1573 REPORTER_ASSERT(reporter, SkPathPriv::ComputeFirstDirection(path) == SkPathFirstDirection::kCW); in test_convexity()
1582 SkPathFirstDirection fExpectedDirection; in test_convexity()
1584 { "", true, SkPathFirstDirection::kUnknown }, in test_convexity()
1585 { "0 0", true, SkPathFirstDirection::kUnknown }, in test_convexity()
1586 { "0 0 10 10", true, SkPathFirstDirection::kUnknown }, in test_convexity()
1587 { "0 0 10 10 20 20 0 0 10 10", false, SkPathFirstDirection::kUnknown }, in test_convexity()
1588 { "0 0 10 10 10 20", true, SkPathFirstDirection::kCW }, in test_convexity()
1589 { "0 0 10 10 10 0", true, SkPathFirstDirection::kCCW }, in test_convexity()
1591 { "0 0 10 0 0 10 -10 -10", false, SkPathFirstDirection::kCW }, in test_convexity()
1603 SkPathFirstDirection dir = SkPathPriv::ComputeFirstDirection(copy); in test_convexity()
1604 bool foundDir = dir != SkPathFirstDirection::kUnknown; in test_convexity()
1605 REPORTER_ASSERT(reporter, (gRec[i].fExpectedDirection == SkPathFirstDirection::kUnknown) in test_convexity()
2136 SkPathFirstDirection cheapDirection = SkPathPriv::ComputeFirstDirection(path); in test_isRect()
2137 REPORTER_ASSERT(reporter, cheapDirection != SkPathFirstDirection::kUnknown); in test_isRect()
2391 SkPathFirstDirection fDirection; in test_isNestedFillRects()
2395 { r1, SK_ARRAY_COUNT(r1), SkPathFirstDirection::kCW , true, true }, in test_isNestedFillRects()
2396 { r2, SK_ARRAY_COUNT(r2), SkPathFirstDirection::kCW , true, true }, in test_isNestedFillRects()
2397 { r3, SK_ARRAY_COUNT(r3), SkPathFirstDirection::kCW , true, true }, in test_isNestedFillRects()
2398 { r4, SK_ARRAY_COUNT(r4), SkPathFirstDirection::kCW , true, true }, in test_isNestedFillRects()
2399 { r5, SK_ARRAY_COUNT(r5), SkPathFirstDirection::kCCW, true, true }, in test_isNestedFillRects()
2400 { r6, SK_ARRAY_COUNT(r6), SkPathFirstDirection::kCCW, true, true }, in test_isNestedFillRects()
2401 { r7, SK_ARRAY_COUNT(r7), SkPathFirstDirection::kCCW, true, true }, in test_isNestedFillRects()
2402 { r8, SK_ARRAY_COUNT(r8), SkPathFirstDirection::kCCW, true, true }, in test_isNestedFillRects()
2403 { r9, SK_ARRAY_COUNT(r9), SkPathFirstDirection::kCCW, true, true }, in test_isNestedFillRects()
2404 { ra, SK_ARRAY_COUNT(ra), SkPathFirstDirection::kCCW, true, true }, in test_isNestedFillRects()
2405 { rb, SK_ARRAY_COUNT(rb), SkPathFirstDirection::kCW, true, true }, in test_isNestedFillRects()
2406 { rc, SK_ARRAY_COUNT(rc), SkPathFirstDirection::kCW, true, true }, in test_isNestedFillRects()
2407 { rd, SK_ARRAY_COUNT(rd), SkPathFirstDirection::kCCW, true, true }, in test_isNestedFillRects()
2408 { re, SK_ARRAY_COUNT(re), SkPathFirstDirection::kCW, true, true }, in test_isNestedFillRects()
2410 { f1, SK_ARRAY_COUNT(f1), SkPathFirstDirection::kUnknown, true, false }, in test_isNestedFillRects()
2411 { f2, SK_ARRAY_COUNT(f2), SkPathFirstDirection::kUnknown, true, false }, in test_isNestedFillRects()
2412 { f3, SK_ARRAY_COUNT(f3), SkPathFirstDirection::kUnknown, true, false }, in test_isNestedFillRects()
2413 { f4, SK_ARRAY_COUNT(f4), SkPathFirstDirection::kUnknown, true, false }, in test_isNestedFillRects()
2414 { f5, SK_ARRAY_COUNT(f5), SkPathFirstDirection::kUnknown, true, false }, in test_isNestedFillRects()
2415 { f6, SK_ARRAY_COUNT(f6), SkPathFirstDirection::kUnknown, true, false }, in test_isNestedFillRects()
2416 { f7, SK_ARRAY_COUNT(f7), SkPathFirstDirection::kUnknown, true, false }, in test_isNestedFillRects()
2417 { f8, SK_ARRAY_COUNT(f8), SkPathFirstDirection::kUnknown, true, false }, in test_isNestedFillRects()
2419 { c1, SK_ARRAY_COUNT(c1), SkPathFirstDirection::kCW, false, true }, in test_isNestedFillRects()
2420 { c2, SK_ARRAY_COUNT(c2), SkPathFirstDirection::kCW, false, true }, in test_isNestedFillRects()
2445 SkPathFirstDirection expectedDirs[2]; in test_isNestedFillRects()
2452 expectedDirs[0] = SkPathFirstDirection::kCW; in test_isNestedFillRects()
2454 expectedDirs[0] = SkPathFirstDirection::kCCW; in test_isNestedFillRects()
2750 … REPORTER_ASSERT(reporter, SkPathPriv::ComputeFirstDirection(p1) == SkPathFirstDirection::kCW); in test_transform()
2762 … REPORTER_ASSERT(reporter, SkPathPriv::ComputeFirstDirection(p1) == SkPathFirstDirection::kCCW); in test_transform()
2772 …REPORTER_ASSERT(reporter, SkPathPriv::ComputeFirstDirection(p1) == SkPathFirstDirection::kUnknown); in test_transform()
3295 SkPathFirstDirection expectedDir) { in check_for_circle()
3312 SkPathFirstDirection dir) { in test_circle_skew()
3319 if (SkPathFirstDirection::kCCW == dir) { in test_circle_skew()
3320 dir = SkPathFirstDirection::kCW; in test_circle_skew()
3322 REPORTER_ASSERT(reporter, SkPathFirstDirection::kCW == dir); in test_circle_skew()
3323 dir = SkPathFirstDirection::kCCW; in test_circle_skew()
3330 SkPathFirstDirection dir) { in test_circle_translate()
3350 SkPathFirstDirection dir) { in test_circle_rotate()
3370 SkPathFirstDirection dir) { in test_circle_mirror_x()
3376 if (SkPathFirstDirection::kCW == dir) { in test_circle_mirror_x()
3377 dir = SkPathFirstDirection::kCCW; in test_circle_mirror_x()
3379 REPORTER_ASSERT(reporter, SkPathFirstDirection::kCCW == dir); in test_circle_mirror_x()
3380 dir = SkPathFirstDirection::kCW; in test_circle_mirror_x()
3387 SkPathFirstDirection dir) { in test_circle_mirror_y()
3394 if (SkPathFirstDirection::kCW == dir) { in test_circle_mirror_y()
3395 dir = SkPathFirstDirection::kCCW; in test_circle_mirror_y()
3397 REPORTER_ASSERT(reporter, SkPathFirstDirection::kCCW == dir); in test_circle_mirror_y()
3398 dir = SkPathFirstDirection::kCW; in test_circle_mirror_y()
3406 SkPathFirstDirection dir) { in test_circle_mirror_xy()
3419 const SkPathFirstDirection dir = SkPathPriv::AsFirstDirection(inDir); in test_circle_with_direction()
3503 check_for_circle(reporter, path, false, SkPathFirstDirection::kCW); in test_circle()
3509 check_for_circle(reporter, path, false, SkPathFirstDirection::kCW); in test_circle()
3515 check_for_circle(reporter, path, false, SkPathFirstDirection::kCW); in test_circle()
3714 REPORTER_ASSERT(reporter, SkPathPriv::ComputeFirstDirection(p) == SkPathFirstDirection::kCW); in test_arc()