/third_party/skia/tests/ |
H A D | IsClosedSingleContourTest.cpp | 7 #include "src/core/SkPathPriv.h" 12 REPORTER_ASSERT(reporter, !SkPathPriv::IsClosedSingleContour(p.detach())); in DEF_TEST() 15 REPORTER_ASSERT(reporter, !SkPathPriv::IsClosedSingleContour(p.detach())); in DEF_TEST() 19 REPORTER_ASSERT(reporter, SkPathPriv::IsClosedSingleContour(p.detach())); in DEF_TEST() 24 REPORTER_ASSERT(reporter, SkPathPriv::IsClosedSingleContour(p.detach())); in DEF_TEST() 32 REPORTER_ASSERT(reporter, SkPathPriv::IsClosedSingleContour(p.detach())); in DEF_TEST() 37 REPORTER_ASSERT(reporter, !SkPathPriv::IsClosedSingleContour(p.detach())); in DEF_TEST() 44 REPORTER_ASSERT(reporter, !SkPathPriv::IsClosedSingleContour(p.detach())); in DEF_TEST() 51 REPORTER_ASSERT(reporter, !SkPathPriv::IsClosedSingleContour(p.detach())); in DEF_TEST()
|
H A D | PathTest.cpp | 24 #include "src/core/SkPathPriv.h" 977 for (auto [verb, pts, w] : SkPathPriv::Iterate(path)) { in test_poly() 1061 SkPathFirstDirection dir = SkPathPriv::ComputeFirstDirection(copy); in check_direction() 1071 SkPathPriv::ComputeFirstDirection(path) == SkPathFirstDirection::kUnknown); in test_direction() 1086 SkPathPriv::ComputeFirstDirection(path) == SkPathFirstDirection::kUnknown); in test_direction() 1568 REPORTER_ASSERT(reporter, SkPathPriv::ComputeFirstDirection(path) == SkPathFirstDirection::kCCW); in test_convexity() 1573 REPORTER_ASSERT(reporter, SkPathPriv::ComputeFirstDirection(path) == SkPathFirstDirection::kCW); in test_convexity() 1603 SkPathFirstDirection dir = SkPathPriv::ComputeFirstDirection(copy); in test_convexity() 1660 SkPathPriv::GetConvexityOrUnknown(path) == SkPathConvexity::kUnknown); in test_convexity() 2136 SkPathFirstDirection cheapDirection = SkPathPriv in test_isRect() [all...] |
H A D | SubsetPath.cpp | 9 #include "src/core/SkPathPriv.h" 67 for (auto [verb, pts, w] : SkPathPriv::Iterate(fPath)) { in SubsetContours() 102 for (auto [verb, pts, w] : SkPathPriv::Iterate(fPath)) { in getSubsetPath() 151 for (auto [verb, pts, w] : SkPathPriv::Iterate(fPath)) { in SubsetVerbs() 183 for (auto [verb, pts, w] : SkPathPriv::Iterate(fPath)) { in getSubsetPath()
|
H A D | PathBuilderTest.cpp | 10 #include "src/core/SkPathPriv.h" 31 REPORTER_ASSERT(reporter, SkPathPriv::HasComputedBounds(p0)); in DEF_TEST() 32 REPORTER_ASSERT(reporter, SkPathPriv::HasComputedBounds(p1)); in DEF_TEST() 33 REPORTER_ASSERT(reporter, SkPathPriv::HasComputedBounds(p2)); in DEF_TEST() 64 for (auto [v, p, w] : SkPathPriv::Iterate(path)) { in check_points() 170 SkPathConvexity ca = SkPathPriv::GetConvexityOrUnknown(a), in is_eq() 171 cb = SkPathPriv::GetConvexityOrUnknown(b); in is_eq() 350 const int a_last = SkPathPriv::LastMoveToIndex(a); 351 const int b_last = SkPathPriv::LastMoveToIndex(b);
|
H A D | PathRendererCacheTests.cpp | 120 REPORTER_ASSERT(reporter, SkPathPriv::GenIDChangeListenersCount(path) == 0); in test_path() 126 REPORTER_ASSERT(reporter, SkPathPriv::GenIDChangeListenersCount(path) == 20); in test_path() 130 REPORTER_ASSERT(reporter, SkPathPriv::GenIDChangeListenersCount(path) == 1); in test_path()
|
H A D | RRectInPathTest.cpp | 11 #include "src/core/SkPathPriv.h" 17 REPORTER_ASSERT(reporter, SkPathPriv::IsRRect(path, &out, dir, start)); in path_contains_rrect() 35 REPORTER_ASSERT(reporter, SkPathPriv::IsRRect(xformed, &xrr, &xd, &xs)); in path_contains_rrect() 108 REPORTER_ASSERT(reporter, SkPath::kMove_Verb == SkPathPriv::VerbData(exactPath)[0]); in test_undetected_paths() 109 REPORTER_ASSERT(reporter, SkPath::kConic_Verb == SkPathPriv::VerbData(exactPath)[1]); in test_undetected_paths() 110 const SkScalar weight = SkPathPriv::ConicWeightData(exactPath)[0]; in test_undetected_paths()
|
/third_party/skia/src/gpu/tessellate/ |
H A D | MiddleOutPolygonTriangulator.h | 15 #include "src/core/SkPathPriv.h" 204 SkPathPriv::Iterate it(path); in PathMiddleOutFanIter() 225 pt = pts[SkPathPriv::PtsInIter((unsigned)verb) - 1]; in nextStack() 235 SkPathPriv::RangeIter fPathIter; 236 SkPathPriv::RangeIter fPathEnd;
|
H A D | StrokeIterator.h | 13 #include "src/core/SkPathPriv.h" 36 SkPathPriv::Iterate it(path); in StrokeIterator() 189 int backIdx = SkPathPriv::PtsInIter((unsigned)this->backVerb()) - 1; in finishOpenContour() 317 SkPoint lastPoint = lastPts[SkPathPriv::PtsInIter((unsigned)lastVerb) - 1]; in fillSquareCapPoints() 346 SkPathPriv::RangeIter fIter; 347 SkPathPriv::RangeIter fEnd;
|
H A D | PathWedgeTessellator.cpp | 42 , fVerbs(SkPathPriv::VerbData(fPath)) in MidpointContourParser() 44 , fPoints(SkPathPriv::PointData(fPath)) in MidpointContourParser() 45 , fWeights(SkPathPriv::ConicWeightData(fPath)) {} in MidpointContourParser() 94 SkPathPriv::Iterate currentContour() { in currentContour() 95 return SkPathPriv::Iterate(fVerbs, fVerbs + fVerbsIdx, fPoints, fWeights); in currentContour()
|
/third_party/skia/src/core/ |
H A D | SkRecords.cpp | 8 #include "src/core/SkPathPriv.h" 16 SkPathPriv::FirstDirection junk; in PreCachedPath() 17 (void)SkPathPriv::CheapComputeFirstDirection(*this, &junk); in PreCachedPath()
|
H A D | SkPath.cpp | 22 #include "src/core/SkPathPriv.h" 64 return (path.countVerbs() - SkPathPriv::LeadingMoveToCount(path)) == 0; in is_degenerate() 289 SkPathFirstDirection direction = SkPathPriv::ComputeFirstDirection(*this); in conservativelyContainsRect() 299 for (auto [verb, pts, weight] : SkPathPriv::Iterate(*this)) { in conservativelyContainsRect() 313 int pointCount = SkPathPriv::PtsInVerb((unsigned) verb); in conservativelyContainsRect() 316 if (!SkPathPriv::AllPointsEq(pts, pointCount + 1)) { in conservativelyContainsRect() 353 SkASSERT((unsigned)fFillType < (1 << (32 - SkPathPriv::kPathRefGenIDBitCnt))); in getGenerationID() 354 genID |= static_cast<uint32_t>(fFillType) << SkPathPriv::kPathRefGenIDBitCnt; in getGenerationID() 455 return SkPathPriv::IsRectContour(*this, false, &currVerb, &pts, isClosed, direction, rect); in isRect() 459 return SkPathPriv in isOval() [all...] |
H A D | SkM44.cpp | 15 #include "src/core/SkPathPriv.h" 185 if (w0 >= SkPathPriv::kW0PlaneDistance) { in map_rect_perspective() 191 if (w >= SkPathPriv::kW0PlaneDistance) { in map_rect_perspective() 192 float t = (SkPathPriv::kW0PlaneDistance - w0) / (w - w0); in map_rect_perspective() 194 SkPathPriv::kW0PlaneDistance; in map_rect_perspective()
|
H A D | SkScan_Hairline.cpp | 13 #include "src/core/SkPathPriv.h" 570 SkPathPriv::RangeIter iter = SkPathPriv::Iterate(path).begin(); 571 SkPathPriv::RangeIter end = SkPathPriv::Iterate(path).end(); 583 memcpy(pts, pathPts, SkPathPriv::PtsInIter(verb) * sizeof(SkPoint));
|
/third_party/skia/src/gpu/geometry/ |
H A D | GrShape.cpp | 10 #include "src/core/SkPathPriv.h" 71 } else if (SkPathPriv::IsRRect(fPath, &rrect, &dir, &start)) { in simplifyPath() 74 } else if (SkPathPriv::IsOval(fPath, &rect, &dir, &start)) { in simplifyPath() 78 } else if (SkPathPriv::IsSimpleRect(fPath, (flags & kSimpleFill_Flag), &rect, &dir, &start)) { in simplifyPath() 333 return SkPathPriv::IsClosedSingleContour(fPath); in closed() 354 return SkPathPriv::DrawArcIsConvex(fArc.fSweepAngle, fArc.fUseCenter, simpleFill); in convex() 449 SkPathPriv::CreateDrawArcPath(out, fArc.fOval, fArc.fStartAngle, fArc.fSweepAngle, in asPath()
|
H A D | GrStyledShape.cpp | 98 const int conicWeightCnt = SkPathPriv::ConicWeightCnt(path); in path_key_from_data_size() 113 const int conicWeightCnt = SkPathPriv::ConicWeightCnt(path); in write_path_key_from_data() 117 memcpy(key, SkPathPriv::VerbData(path), verbCnt * sizeof(uint8_t)); in write_path_key_from_data() 124 memcpy(key, SkPathPriv::PointData(path), sizeof(SkPoint) * pointCnt); in write_path_key_from_data() 127 sk_careful_memcpy(key, SkPathPriv::ConicWeightData(path), sizeof(SkScalar) * conicWeightCnt); in write_path_key_from_data() 302 SkPathPriv::AddGenIDChangeListener(*lp, std::move(listener)); in addGenIDChangeListener() 534 if (!SkPathPriv::IsNestedFillRects(fShape.path(), rects, dirs)) { in asNestedRects()
|
H A D | GrQuadUtils.cpp | 13 #include "src/core/SkPathPriv.h" 322 M4f clipW = ws < SkPathPriv::kW0PlaneDistance; in projectedBounds() 335 V4f t = (SkPathPriv::kW0PlaneDistance - ws) / (next_ccw(ws) - ws); in projectedBounds() 336 x2d = (t * next_ccw(xs) + (1.f - t) * xs) / SkPathPriv::kW0PlaneDistance; in projectedBounds() 337 y2d = (t * next_ccw(ys) + (1.f - t) * ys) / SkPathPriv::kW0PlaneDistance; in projectedBounds() 339 clipW = clipW ^ (next_ccw(ws) < SkPathPriv::kW0PlaneDistance); in projectedBounds() 401 M4f validW = quad->fDevice.w4f() >= SkPathPriv::kW0PlaneDistance; 427 V4f t = (SkPathPriv::kW0PlaneDistance - v.fW) / (next_ccw(v.fW) - v.fW); 432 clip.fW = SkPathPriv::kW0PlaneDistance; 438 M4f ccwValid = next_ccw(v.fW) >= SkPathPriv [all...] |
/third_party/skia/bench/ |
H A D | TessellateBench.cpp | 10 #include "src/core/SkPathPriv.h" 170 for (auto [verb, pts, w] : SkPathPriv::Iterate(path)) { in benchmark_wangs_formula_cubic_log2() 198 for (auto [verb, pts, w] : SkPathPriv::Iterate(path)) { in benchmark_wangs_formula_conic() 212 for (auto [verb, pts, w] : SkPathPriv::Iterate(path)) { in benchmark_wangs_formula_conic_log2() 291 : SkPathPriv::PointData(path)[path.countPoints() - 1]; in make_motionmark_paths() 302 ? 0 : SkPathPriv::PointData(path)[path.countPoints() - 1].fY; in make_motionmark_paths()
|
/third_party/skia/gm/ |
H A D | strokefill.cpp | 20 #include "src/core/SkPathPriv.h" 306 SkASSERT(SkPathPriv::ComputeFirstDirection(path2) == SkPathFirstDirection::kCCW); in DEF_SIMPLE_GM_BG_NAME() 309 SkASSERT(SkPathPriv::ComputeFirstDirection(path2) == SkPathFirstDirection::kUnknown); in DEF_SIMPLE_GM_BG_NAME() 311 SkASSERT(SkPathPriv::ComputeFirstDirection(path2) == SkPathFirstDirection::kCW); in DEF_SIMPLE_GM_BG_NAME() 335 SkASSERT(SkPathPriv::ComputeFirstDirection(path4) == SkPathFirstDirection::kUnknown); in DEF_SIMPLE_GM_BG_NAME() 337 SkASSERT(SkPathPriv::ComputeFirstDirection(path4) == SkPathFirstDirection::kCCW); in DEF_SIMPLE_GM_BG_NAME() 344 SkASSERT(SkPathPriv::ComputeFirstDirection(path4) == SkPathFirstDirection::kUnknown); in DEF_SIMPLE_GM_BG_NAME() 346 SkASSERT(SkPathPriv::ComputeFirstDirection(path4) == SkPathFirstDirection::kCW); in DEF_SIMPLE_GM_BG_NAME()
|
/third_party/skia/src/pathops/ |
H A D | SkOpBuilder.cpp | 11 #include "src/core/SkPathPriv.h" 46 SkPathFirstDirection dir = SkPathPriv::ComputeFirstDirection(*path); in FixWinding() 141 SkPathFirstDirection dir = SkPathPriv::ComputeFirstDirection(*test); in resolve()
|
H A D | SkPathOpsAsWinding.cpp | 8 #include "src/core/SkPathPriv.h" 184 for (auto [verb, pts, w] : SkPathPriv::Iterate(fPath)) { 325 SkPathPriv::Iterate iterate(fPath); in reverseMarkedContours() 359 SkPathPriv::ReverseAddPath(&result, reverse.detach()); in reverseMarkedContours()
|
H A D | SkPathOpsTightBounds.cpp | 7 #include "src/core/SkPathPriv.h" 14 for (auto [verb, pts, w] : SkPathPriv::Iterate(path)) { in TightBounds()
|
/third_party/skia/samplecode/ |
H A D | SamplePathTessellators.cpp | 10 #include "src/core/SkPathPriv.h" 264 SkPathPriv::PointData(devPath), pointsPaint); in onDrawContent() 274 SkPathPriv::UpdatePathPoint(path, fPtIdx, pt + fCurr - fPrev); in doClick() 283 const SkPoint* pts = SkPathPriv::PointData(fPath); in onFindClickHandler() 301 for (auto [verb, pts, _] : SkPathPriv::Iterate(path)) { in update_weight()
|
/third_party/skia/src/pdf/ |
H A D | SkPDFUtils.cpp | 16 #include "src/core/SkPathPriv.h" 166 if (!doConsumeDegerates || !SkPathPriv::AllPointsEq(args, 2)) { in EmitPath() 176 if (!doConsumeDegerates || !SkPathPriv::AllPointsEq(args, 3)) { in EmitPath() 182 if (!doConsumeDegerates || !SkPathPriv::AllPointsEq(args, 3)) { in EmitPath() 192 if (!doConsumeDegerates || !SkPathPriv::AllPointsEq(args, 4)) { in EmitPath()
|
/third_party/skia/src/gpu/ops/ |
H A D | AAConvexPathRenderer.cpp | 14 #include "src/core/SkPathPriv.h" 231 *dir = SkPathPriv::ComputeFirstDirection(path); in get_direction() 241 *dir = SkPathPriv::OppositeFirstDirection(*dir); in get_direction() 306 if (!SkPathPriv::AllPointsEq(pts, 2)) { in get_segments() 314 if (!SkPathPriv::AllPointsEq(pts, 3)) { in get_segments() 322 if (!SkPathPriv::AllPointsEq(pts, 3)) { in get_segments() 336 if (!SkPathPriv::AllPointsEq(pts, 4)) { in get_segments()
|
/third_party/skia/modules/sksg/src/ |
H A D | SkSGMerge.cpp | 12 #include "src/core/SkPathPriv.h" 107 SkPathPriv::ShrinkToFit(&fMerged); in onRevalidate()
|