Lines Matching refs:SkPathPriv

24 #include "src/core/SkPathPriv.h"
977 for (auto [verb, pts, w] : SkPathPriv::Iterate(path)) {
1061 SkPathFirstDirection dir = SkPathPriv::ComputeFirstDirection(copy);
1071 SkPathPriv::ComputeFirstDirection(path) == SkPathFirstDirection::kUnknown);
1086 SkPathPriv::ComputeFirstDirection(path) == SkPathFirstDirection::kUnknown);
1568 REPORTER_ASSERT(reporter, SkPathPriv::ComputeFirstDirection(path) == SkPathFirstDirection::kCCW);
1573 REPORTER_ASSERT(reporter, SkPathPriv::ComputeFirstDirection(path) == SkPathFirstDirection::kCW);
1603 SkPathFirstDirection dir = SkPathPriv::ComputeFirstDirection(copy);
1660 SkPathPriv::GetConvexityOrUnknown(path) == SkPathConvexity::kUnknown);
2136 SkPathFirstDirection cheapDirection = SkPathPriv::ComputeFirstDirection(path);
2141 REPORTER_ASSERT(reporter, SkPathPriv::AsFirstDirection(direction) == cheapDirection);
2220 REPORTER_ASSERT(reporter, SkPathPriv::IsSimpleRect(path, false, &r, &d, &s) == isClosed);
2221 REPORTER_ASSERT(reporter, SkPathPriv::IsSimpleRect(path, true, &r, &d, &s));
2244 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path2, false, &r, &d, &s));
2245 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path2, true, &r, &d, &s));
2248 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path2, false, &r, &d, &s));
2249 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path2, true, &r, &d, &s));
2252 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path2, false, &r, &d, &s));
2253 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path2, true, &r, &d, &s));
2257 for (auto [v, verbPts, w] : SkPathPriv::Iterate(path)) {
2271 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path2, false, &r, &d, &s));
2272 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path2, true, &r, &d, &s));
2282 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path2, false, &r, &d, &s));
2283 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path2, true, &r, &d, &s));
2288 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path2, false, &r, &d, &s));
2289 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path2, true, &r, &d, &s));
2294 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path2, false, &r, &d, &s));
2295 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path2, true, &r, &d, &s));
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));
2441 tests[testIndex].fIsNestedRect == SkPathPriv::IsNestedFillRects(path, nullptr));
2456 REPORTER_ASSERT(reporter, SkPathPriv::IsNestedFillRects(path, computed, computedDirs));
2459 REPORTER_ASSERT(reporter, expectedDirs[0] == SkPathPriv::AsFirstDirection(computedDirs[0]));
2460 REPORTER_ASSERT(reporter, expectedDirs[1] == SkPathPriv::AsFirstDirection(computedDirs[1]));
2478 REPORTER_ASSERT(reporter, !SkPathPriv::IsNestedFillRects(path1, nullptr));
2496 REPORTER_ASSERT(reporter, !SkPathPriv::IsNestedFillRects(path1, nullptr));
2511 REPORTER_ASSERT(reporter, !SkPathPriv::IsNestedFillRects(path1, nullptr));
2529 REPORTER_ASSERT(reporter, !SkPathPriv::IsNestedFillRects(path1, nullptr));
2547 REPORTER_ASSERT(reporter, !SkPathPriv::IsNestedFillRects(path1, nullptr));
2553 REPORTER_ASSERT(reporter, !SkPathPriv::IsNestedFillRects(path1, nullptr));
2568 REPORTER_ASSERT(reporter, SkPathPriv::IsNestedFillRects(path, nullptr));
2577 REPORTER_ASSERT(reporter, SkPathPriv::IsNestedFillRects(dst, nullptr));
2594 REPORTER_ASSERT(reporter, SkPathPriv::GetConvexityOrUnknown(readBack) ==
2595 SkPathPriv::GetConvexityOrUnknown(p));
2601 if (SkPathPriv::IsOval(p, &oval0, &dir0, &start0) &&
2602 SkPathPriv::IsOval(readBack, &oval1, &dir1, &start1)) {
2609 if (SkPathPriv::IsRRect(p, &rrect0, &dir0, &start0) &&
2610 SkPathPriv::IsRRect(readBack, &rrect1, &dir1, &start1)) {
2749 REPORTER_ASSERT(reporter, SkPathPriv::ComputeFirstDirection(p1) == SkPathFirstDirection::kCW);
2761 REPORTER_ASSERT(reporter, SkPathPriv::ComputeFirstDirection(p1) == SkPathFirstDirection::kCCW);
2771 REPORTER_ASSERT(reporter, SkPathPriv::ComputeFirstDirection(p1) == SkPathFirstDirection::kUnknown);
3044 SkPathPriv::Iterate iterate(path);
3049 iterate = SkPathPriv::Iterate(path);
3050 SkPathPriv::RangeIter iter = iterate.begin();
3062 iterate = SkPathPriv::Iterate(path);
3087 iterate = SkPathPriv::Iterate(path);
3101 iterate = SkPathPriv::Iterate(path);
3244 for (auto [verb, pts, w] : SkPathPriv::Iterate(path)) {
3299 if (SkPathPriv::IsOval(path, &rect, &isOvalDir, &isOvalStart)) {
3301 REPORTER_ASSERT(reporter, SkPathPriv::AsFirstDirection(isOvalDir) == expectedDir);
3306 REPORTER_ASSERT(reporter, SkPathPriv::ComputeFirstDirection(path) == expectedDir);
3418 const SkPathFirstDirection dir = SkPathPriv::AsFirstDirection(inDir);
3480 check_for_circle(reporter, path, false, SkPathPriv::AsFirstDirection(kCircleDir));
3486 check_for_circle(reporter, path, true, SkPathPriv::AsFirstDirection(kCircleDir));
3491 check_for_circle(reporter, path, false, SkPathPriv::AsFirstDirection(kCircleDirOpposite));
3542 REPORTER_ASSERT(reporter, SkPathPriv::IsOval(tmp, nullptr, &dir, &start));
3582 REPORTER_ASSERT(reporter, SkPathPriv::IsOval(path, nullptr, &dir, &start));
3605 SkPathPriv::ComputeFirstDirection(*path) == SkPathPriv::AsFirstDirection(dir));
3606 SkPathPriv::ForceComputeConvexity(*path);
3615 SkPathPriv::ComputeFirstDirection(*path) == SkPathPriv::AsFirstDirection(dir));
3616 SkPathPriv::ForceComputeConvexity(*path);
3713 REPORTER_ASSERT(reporter, SkPathPriv::ComputeFirstDirection(p) == SkPathFirstDirection::kCW);
3714 SkPathPriv::ForceComputeConvexity(p);
3748 bool isOval = SkPathPriv::IsOval(path, &r, &d, &s);
3782 static void check_move(skiatest::Reporter* reporter, SkPathPriv::RangeIter* iter,
3790 static void check_line(skiatest::Reporter* reporter, SkPathPriv::RangeIter* iter,
3798 static void check_quad(skiatest::Reporter* reporter, SkPathPriv::RangeIter* iter,
3808 static void check_close(skiatest::Reporter* reporter, SkPathPriv::RangeIter* iter) {
3813 static void check_done(skiatest::Reporter* reporter, SkPath* p, SkPathPriv::RangeIter* iter) {
3814 REPORTER_ASSERT(reporter, *iter == SkPathPriv::Iterate(*p).end());
3818 SkPathPriv::RangeIter* iter) {
3825 SkPathPriv::RangeIter iter = SkPathPriv::Iterate(*p).begin();
3832 SkPathPriv::RangeIter iter = SkPathPriv::Iterate(*p).begin();
3840 SkPathPriv::RangeIter iter = SkPathPriv::Iterate(*p).begin();
3848 SkPathPriv::RangeIter iter = SkPathPriv::Iterate(*p).begin();
3857 SkPathPriv::RangeIter iter = SkPathPriv::Iterate(*p).begin();
3876 SkPathPriv::RangeIter iter = SkPathPriv::Iterate(p).begin();
3886 iter = SkPathPriv::Iterate(p).begin();
3893 iter = SkPathPriv::Iterate(p).begin();
4423 SkPathPriv::AddGenIDChangeListener(p, sk_make_sp<ChangeListener>(&changed));
4429 SkPathPriv::AddGenIDChangeListener(p, sk_make_sp<ChangeListener>(&changed));
4435 SkPathPriv::AddGenIDChangeListener(p, sk_make_sp<ChangeListener>(&changed));
4443 SkPathPriv::AddGenIDChangeListener(p, sk_make_sp<ChangeListener>(&changed));
4452 SkPathPriv::AddGenIDChangeListener(q, sk_make_sp<ChangeListener>(&changed));
4464 SkPathPriv::AddGenIDChangeListener(q, sk_make_sp<ChangeListener>(&changed));
5112 SkPathPriv::Iterate iterate(path);
5464 SkPathPriv::ShrinkToFit(&unique_path);
5465 SkPathPriv::ShrinkToFit(&shared_path);
5542 SkPathConvexity c = SkPathPriv::GetConvexityOrUnknown(path);
5559 REPORTER_ASSERT(reporter, SkPathPriv::GetConvexityOrUnknown(path2) == SkPathConvexity::kConvex);
5565 REPORTER_ASSERT(reporter, SkPathPriv::GetConvexityOrUnknown(path2) == SkPathConvexity::kConvex);
5567 REPORTER_ASSERT(reporter, SkPathPriv::GetConvexityOrUnknown(*path) == SkPathConvexity::kConvex);
5590 REPORTER_ASSERT(reporter, SkPathPriv::GetConvexityOrUnknown(path2) != SkPathConvexity::kConvex);
5591 REPORTER_ASSERT(reporter, SkPathPriv::GetConvexityOrUnknown(*path) != SkPathConvexity::kConvex);
5834 SkPathPriv::ForceComputeConvexity(path2);
5854 REPORTER_ASSERT(r, (numExtraMoveTos + 1) == SkPathPriv::LeadingMoveToCount(path));
5858 SkPathConvexity origConvexity = SkPathPriv::GetConvexityOrUnknown(path);
5862 SkPathPriv::ForceComputeConvexity(path);