Lines Matching refs:SkPathPriv
928 const SkPathPriv::FirstDirection kDontCheckDir = static_cast<SkPathPriv::FirstDirection>(-1);
931 SkPathPriv::FirstDirection expected) { in check_direction()
937 SkPathPriv::FirstDirection dir; in check_direction()
938 if (SkPathPriv::CheapComputeFirstDirection(copy, &dir)) { in check_direction()
941 REPORTER_ASSERT(reporter, SkPathPriv::kUnknown_FirstDirection == expected); in check_direction()
948 REPORTER_ASSERT(reporter, !SkPathPriv::CheapComputeFirstDirection(path, nullptr)); in test_direction()
949 …REPORTER_ASSERT(reporter, !SkPathPriv::CheapIsFirstDirection(path, SkPathPriv::kCW_FirstDirection)… in test_direction()
950 …REPORTER_ASSERT(reporter, !SkPathPriv::CheapIsFirstDirection(path, SkPathPriv::kCCW_FirstDirection… in test_direction()
951 …REPORTER_ASSERT(reporter, SkPathPriv::CheapIsFirstDirection(path, SkPathPriv::kUnknown_FirstDirect… in test_direction()
965 REPORTER_ASSERT(reporter, !SkPathPriv::CheapComputeFirstDirection(path, nullptr)); in test_direction()
981 check_direction(reporter, path, SkPathPriv::kCW_FirstDirection); in test_direction()
997 check_direction(reporter, path, SkPathPriv::kCCW_FirstDirection); in test_direction()
1005 check_direction(reporter, path, SkPathPriv::kCW_FirstDirection); in test_direction()
1010 check_direction(reporter, path, SkPathPriv::kCCW_FirstDirection); in test_direction()
1018 check_direction(reporter, path, SkPathPriv::kCCW_FirstDirection); in test_direction()
1023 check_direction(reporter, path, SkPathPriv::kCW_FirstDirection); in test_direction()
1030 check_direction(reporter, path, SkPathPriv::kCCW_FirstDirection); in test_direction()
1206 check_direction(reporter, tinyConvexPolygon, SkPathPriv::kCW_FirstDirection); in test_path_crbug389050()
1214 check_direction(reporter, platTriangle, SkPathPriv::kCW_FirstDirection); in test_path_crbug389050()
1222 check_direction(reporter, platTriangle, SkPathPriv::kCW_FirstDirection); in test_path_crbug389050()
1230 check_direction(reporter, pt, SkPathPriv::kUnknown_FirstDirection); in test_convexity2()
1237 check_direction(reporter, line, SkPathPriv::kUnknown_FirstDirection); in test_convexity2()
1245 check_direction(reporter, triLeft, SkPathPriv::kCW_FirstDirection); in test_convexity2()
1253 check_direction(reporter, triRight, SkPathPriv::kCCW_FirstDirection); in test_convexity2()
1262 check_direction(reporter, square, SkPathPriv::kCW_FirstDirection); in test_convexity2()
1279 check_direction(reporter, redundantSquare, SkPathPriv::kCW_FirstDirection); in test_convexity2()
1318 check_direction(reporter, dent, SkPathPriv::kCW_FirstDirection); in test_convexity2()
1346 check_direction(reporter, degenerateConcave, SkPathPriv::kUnknown_FirstDirection); in test_convexity2()
1409 …REPORTER_ASSERT(reporter, SkPathPriv::CheapIsFirstDirection(path, SkPathPriv::kCCW_FirstDirection)… in test_convexity()
1414 …REPORTER_ASSERT(reporter, SkPathPriv::CheapIsFirstDirection(path, SkPathPriv::kCW_FirstDirection)); in test_convexity()
1419 SkPathPriv::FirstDirection fExpectedDirection; in test_convexity()
1421 { "", SkPath::kConvex_Convexity, SkPathPriv::kUnknown_FirstDirection }, in test_convexity()
1422 { "0 0", SkPath::kConvex_Convexity, SkPathPriv::kUnknown_FirstDirection }, in test_convexity()
1423 { "0 0 10 10", SkPath::kConvex_Convexity, SkPathPriv::kUnknown_FirstDirection }, in test_convexity()
1424 … { "0 0 10 10 20 20 0 0 10 10", SkPath::kConcave_Convexity, SkPathPriv::kUnknown_FirstDirection }, in test_convexity()
1425 { "0 0 10 10 10 20", SkPath::kConvex_Convexity, SkPathPriv::kCW_FirstDirection }, in test_convexity()
1426 { "0 0 10 10 10 0", SkPath::kConvex_Convexity, SkPathPriv::kCCW_FirstDirection }, in test_convexity()
1428 { "0 0 10 0 0 10 -10 -10", SkPath::kConcave_Convexity, SkPathPriv::kCW_FirstDirection }, in test_convexity()
1439 SkPathPriv::FirstDirection dir; in test_convexity()
1440 bool foundDir = SkPathPriv::CheapComputeFirstDirection(copy, &dir); in test_convexity()
1441 … REPORTER_ASSERT(reporter, (gRec[i].fExpectedDirection == SkPathPriv::kUnknown_FirstDirection) in test_convexity()
1903 SkPathPriv::FirstDirection cheapDirection; in test_isRect()
1905 … REPORTER_ASSERT(reporter, SkPathPriv::CheapComputeFirstDirection(path, &cheapDirection)); in test_isRect()
1909 REPORTER_ASSERT(reporter, SkPathPriv::AsFirstDirection(direction) == cheapDirection); in test_isRect()
2013 SkPathPriv::FirstDirection fDirection; in test_isNestedFillRects()
2017 { r1, SK_ARRAY_COUNT(r1), SkPathPriv::kCW_FirstDirection , true, true }, in test_isNestedFillRects()
2018 { r2, SK_ARRAY_COUNT(r2), SkPathPriv::kCW_FirstDirection , true, true }, in test_isNestedFillRects()
2019 { r3, SK_ARRAY_COUNT(r3), SkPathPriv::kCW_FirstDirection , true, true }, in test_isNestedFillRects()
2020 { r4, SK_ARRAY_COUNT(r4), SkPathPriv::kCW_FirstDirection , true, true }, in test_isNestedFillRects()
2021 { r5, SK_ARRAY_COUNT(r5), SkPathPriv::kCCW_FirstDirection, true, true }, in test_isNestedFillRects()
2022 { r6, SK_ARRAY_COUNT(r6), SkPathPriv::kCCW_FirstDirection, true, true }, in test_isNestedFillRects()
2023 { r7, SK_ARRAY_COUNT(r7), SkPathPriv::kCCW_FirstDirection, true, true }, in test_isNestedFillRects()
2024 { r8, SK_ARRAY_COUNT(r8), SkPathPriv::kCCW_FirstDirection, true, true }, in test_isNestedFillRects()
2025 { r9, SK_ARRAY_COUNT(r9), SkPathPriv::kCCW_FirstDirection, true, true }, in test_isNestedFillRects()
2026 { ra, SK_ARRAY_COUNT(ra), SkPathPriv::kCCW_FirstDirection, true, true }, in test_isNestedFillRects()
2027 { rb, SK_ARRAY_COUNT(rb), SkPathPriv::kCW_FirstDirection, true, true }, in test_isNestedFillRects()
2028 { rc, SK_ARRAY_COUNT(rc), SkPathPriv::kCW_FirstDirection, true, true }, in test_isNestedFillRects()
2029 { rd, SK_ARRAY_COUNT(rd), SkPathPriv::kCCW_FirstDirection, true, true }, in test_isNestedFillRects()
2030 { re, SK_ARRAY_COUNT(re), SkPathPriv::kCW_FirstDirection, true, true }, in test_isNestedFillRects()
2032 { f1, SK_ARRAY_COUNT(f1), SkPathPriv::kUnknown_FirstDirection, true, false }, in test_isNestedFillRects()
2033 { f2, SK_ARRAY_COUNT(f2), SkPathPriv::kUnknown_FirstDirection, true, false }, in test_isNestedFillRects()
2034 { f3, SK_ARRAY_COUNT(f3), SkPathPriv::kUnknown_FirstDirection, true, false }, in test_isNestedFillRects()
2035 { f4, SK_ARRAY_COUNT(f4), SkPathPriv::kUnknown_FirstDirection, true, false }, in test_isNestedFillRects()
2036 { f5, SK_ARRAY_COUNT(f5), SkPathPriv::kUnknown_FirstDirection, true, false }, in test_isNestedFillRects()
2037 { f6, SK_ARRAY_COUNT(f6), SkPathPriv::kUnknown_FirstDirection, true, false }, in test_isNestedFillRects()
2038 { f7, SK_ARRAY_COUNT(f7), SkPathPriv::kUnknown_FirstDirection, true, false }, in test_isNestedFillRects()
2039 { f8, SK_ARRAY_COUNT(f8), SkPathPriv::kUnknown_FirstDirection, true, false }, in test_isNestedFillRects()
2041 { c1, SK_ARRAY_COUNT(c1), SkPathPriv::kCW_FirstDirection, false, true }, in test_isNestedFillRects()
2042 { c2, SK_ARRAY_COUNT(c2), SkPathPriv::kCW_FirstDirection, false, true }, in test_isNestedFillRects()
2067 SkPathPriv::FirstDirection expectedDirs[2]; in test_isNestedFillRects()
2074 expectedDirs[0] = SkPathPriv::kCW_FirstDirection; in test_isNestedFillRects()
2076 expectedDirs[0] = SkPathPriv::kCCW_FirstDirection; in test_isNestedFillRects()
2082 … REPORTER_ASSERT(reporter, expectedDirs[0] == SkPathPriv::AsFirstDirection(computedDirs[0])); in test_isNestedFillRects()
2083 … REPORTER_ASSERT(reporter, expectedDirs[1] == SkPathPriv::AsFirstDirection(computedDirs[1])); in test_isNestedFillRects()
2356 … REPORTER_ASSERT(reporter, SkPathPriv::CheapIsFirstDirection(p1, SkPathPriv::kCW_FirstDirection)); in test_transform()
2368 … REPORTER_ASSERT(reporter, SkPathPriv::CheapIsFirstDirection(p1, SkPathPriv::kCCW_FirstDirection)); in test_transform()
2378 …REPORTER_ASSERT(reporter, SkPathPriv::CheapIsFirstDirection(p1, SkPathPriv::kUnknown_FirstDirectio… in test_transform()
2892 SkPathPriv::FirstDirection expectedDir) { in check_for_circle()
2895 REPORTER_ASSERT(reporter, SkPathPriv::CheapIsFirstDirection(path, expectedDir)); in check_for_circle()
2904 SkPathPriv::FirstDirection dir) { in test_circle_skew()
2911 if (SkPathPriv::kCCW_FirstDirection == dir) { in test_circle_skew()
2912 dir = SkPathPriv::kCW_FirstDirection; in test_circle_skew()
2914 REPORTER_ASSERT(reporter, SkPathPriv::kCW_FirstDirection == dir); in test_circle_skew()
2915 dir = SkPathPriv::kCCW_FirstDirection; in test_circle_skew()
2922 SkPathPriv::FirstDirection dir) { in test_circle_translate()
2942 SkPathPriv::FirstDirection dir) { in test_circle_rotate()
2962 SkPathPriv::FirstDirection dir) { in test_circle_mirror_x()
2969 if (SkPathPriv::kCW_FirstDirection == dir) { in test_circle_mirror_x()
2970 dir = SkPathPriv::kCCW_FirstDirection; in test_circle_mirror_x()
2972 REPORTER_ASSERT(reporter, SkPathPriv::kCCW_FirstDirection == dir); in test_circle_mirror_x()
2973 dir = SkPathPriv::kCW_FirstDirection; in test_circle_mirror_x()
2981 SkPathPriv::FirstDirection dir) { in test_circle_mirror_y()
2988 if (SkPathPriv::kCW_FirstDirection == dir) { in test_circle_mirror_y()
2989 dir = SkPathPriv::kCCW_FirstDirection; in test_circle_mirror_y()
2991 REPORTER_ASSERT(reporter, SkPathPriv::kCCW_FirstDirection == dir); in test_circle_mirror_y()
2992 dir = SkPathPriv::kCW_FirstDirection; in test_circle_mirror_y()
3000 SkPathPriv::FirstDirection dir) { in test_circle_mirror_xy()
3013 const SkPathPriv::FirstDirection dir = SkPathPriv::AsFirstDirection(inDir); in test_circle_with_direction()
3060 check_for_circle(reporter, path, false, SkPathPriv::AsFirstDirection(kCircleDir)); in test_circle_with_add_paths()
3065 check_for_circle(reporter, path, true, SkPathPriv::AsFirstDirection(kCircleDir)); in test_circle_with_add_paths()
3070 check_for_circle(reporter, path, false, SkPathPriv::AsFirstDirection(kCircleDirOpposite)); in test_circle_with_add_paths()
3081 check_for_circle(reporter, path, false, SkPathPriv::kCW_FirstDirection); in test_circle()
3087 check_for_circle(reporter, path, false, SkPathPriv::kCW_FirstDirection); in test_circle()
3093 check_for_circle(reporter, path, false, SkPathPriv::kCW_FirstDirection); in test_circle()
3175 …REPORTER_ASSERT(reporter, SkPathPriv::CheapIsFirstDirection(*path, SkPathPriv::AsFirstDirection(di… in test_rrect_is_convex()
3184 …REPORTER_ASSERT(reporter, SkPathPriv::CheapIsFirstDirection(*path, SkPathPriv::AsFirstDirection(di… in test_rrect_convexity_is_unknown()
3280 REPORTER_ASSERT(reporter, SkPathPriv::CheapIsFirstDirection(p, SkPathPriv::kCW_FirstDirection)); in test_arc()
3870 SkPathPriv::AddGenIDChangeListener(p, new ChangeListener(&changed)); in TestPathrefListeners()
3876 SkPathPriv::AddGenIDChangeListener(p, new ChangeListener(&changed)); in TestPathrefListeners()
3882 SkPathPriv::AddGenIDChangeListener(p, new ChangeListener(&changed)); in TestPathrefListeners()
3890 SkPathPriv::AddGenIDChangeListener(p, new ChangeListener(&changed)); in TestPathrefListeners()
3899 SkPathPriv::AddGenIDChangeListener(q, new ChangeListener(&changed)); in TestPathrefListeners()