Home
last modified time | relevance | path

Searched refs:SkPathPriv (Results 1 – 25 of 108) sorted by relevance

12345

/external/skia/tests/
DIsClosedSingleContourTest.cpp12 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()
DPathTest.cpp977 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::ComputeFirstDirection(path); in test_isRect()
2141 REPORTER_ASSERT(reporter, SkPathPriv::AsFirstDirection(direction) == cheapDirection); in test_isRect()
[all …]
DSubsetPath.cpp67 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()
DPathBuilderTest.cpp31 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()
DPathRendererCacheTests.cpp120 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()
DGrCCPRTest.cpp170 REPORTER_ASSERT(reporter, SkPathPriv::TestingOnly_unique(fPath)); in onRun()
177 REPORTER_ASSERT(reporter, !SkPathPriv::TestingOnly_unique(fPath)); in onRun()
180 REPORTER_ASSERT(reporter, SkPathPriv::TestingOnly_unique(fPath)); in onRun()
198 REPORTER_ASSERT(reporter, SkPathPriv::TestingOnly_unique(fPath)); in onRun()
/external/skqp/tests/
DIsClosedSingleContourTest.cpp12 REPORTER_ASSERT(reporter, !SkPathPriv::IsClosedSingleContour(p)); in DEF_TEST()
16 REPORTER_ASSERT(reporter, !SkPathPriv::IsClosedSingleContour(p)); in DEF_TEST()
21 REPORTER_ASSERT(reporter, SkPathPriv::IsClosedSingleContour(p)); in DEF_TEST()
27 REPORTER_ASSERT(reporter, SkPathPriv::IsClosedSingleContour(p)); in DEF_TEST()
36 REPORTER_ASSERT(reporter, SkPathPriv::IsClosedSingleContour(p)); in DEF_TEST()
42 REPORTER_ASSERT(reporter, !SkPathPriv::IsClosedSingleContour(p)); in DEF_TEST()
50 REPORTER_ASSERT(reporter, !SkPathPriv::IsClosedSingleContour(p)); in DEF_TEST()
58 REPORTER_ASSERT(reporter, !SkPathPriv::IsClosedSingleContour(p)); in DEF_TEST()
DPathTest.cpp1057 const SkPathPriv::FirstDirection kDontCheckDir = static_cast<SkPathPriv::FirstDirection>(3);
1060 SkPathPriv::FirstDirection expected) { in check_direction()
1066 SkPathPriv::FirstDirection dir; in check_direction()
1067 if (SkPathPriv::CheapComputeFirstDirection(copy, &dir)) { in check_direction()
1070 REPORTER_ASSERT(reporter, SkPathPriv::kUnknown_FirstDirection == expected); in check_direction()
1077 REPORTER_ASSERT(reporter, !SkPathPriv::CheapComputeFirstDirection(path, nullptr)); in test_direction()
1078 …REPORTER_ASSERT(reporter, !SkPathPriv::CheapIsFirstDirection(path, SkPathPriv::kCW_FirstDirection)… in test_direction()
1079 …REPORTER_ASSERT(reporter, !SkPathPriv::CheapIsFirstDirection(path, SkPathPriv::kCCW_FirstDirection… in test_direction()
1080 …REPORTER_ASSERT(reporter, SkPathPriv::CheapIsFirstDirection(path, SkPathPriv::kUnknown_FirstDirect… in test_direction()
1094 REPORTER_ASSERT(reporter, !SkPathPriv::CheapComputeFirstDirection(path, nullptr)); in test_direction()
[all …]
DGrCCPRTest.cpp200 REPORTER_ASSERT(reporter, SkPathPriv::TestingOnly_unique(fPath)); in onRun()
206 REPORTER_ASSERT(reporter, !SkPathPriv::TestingOnly_unique(fPath)); in onRun()
208 REPORTER_ASSERT(reporter, SkPathPriv::TestingOnly_unique(fPath)); in onRun()
214 REPORTER_ASSERT(reporter, !SkPathPriv::TestingOnly_unique(fPath)); in onRun()
216 REPORTER_ASSERT(reporter, SkPathPriv::TestingOnly_unique(fPath)); in onRun()
223 REPORTER_ASSERT(reporter, !SkPathPriv::TestingOnly_unique(fPath)); in onRun()
226 REPORTER_ASSERT(reporter, SkPathPriv::TestingOnly_unique(fPath)); in onRun()
240 REPORTER_ASSERT(reporter, SkPathPriv::TestingOnly_unique(fPath)); in onRun()
244 REPORTER_ASSERT(reporter, !SkPathPriv::TestingOnly_unique(fPath)); in onRun()
246 REPORTER_ASSERT(reporter, SkPathPriv::TestingOnly_unique(fPath)); in onRun()
[all …]
/external/skia/src/gpu/tessellate/
DGrMidpointContourParser.h27 , fVerbs(SkPathPriv::VerbData(fPath)) in GrMidpointContourParser()
29 , fPoints(SkPathPriv::PointData(fPath)) in GrMidpointContourParser()
30 , fWeights(SkPathPriv::ConicWeightData(fPath)) {} in GrMidpointContourParser()
69 SkPathPriv::Iterate currentContour() { in currentContour()
70 return SkPathPriv::Iterate(fVerbs, fVerbs + fVerbsIdx, fPoints, fWeights); in currentContour()
DGrStrokeIterator.h34 SkPathPriv::Iterate it(path); in GrStrokeIterator()
187 int backIdx = SkPathPriv::PtsInIter((unsigned)this->backVerb()) - 1; in finishOpenContour()
315 SkPoint lastPoint = lastPts[SkPathPriv::PtsInIter((unsigned)lastVerb) - 1]; in fillSquareCapPoints()
344 SkPathPriv::RangeIter fIter;
345 SkPathPriv::RangeIter fEnd;
DGrMiddleOutPolygonTriangulator.h124 for (auto [verb, pts, w] : SkPathPriv::Iterate(path)) { in WritePathInnerFan()
133 middleOut.pushVertex(pts[SkPathPriv::PtsInIter((unsigned)verb) - 1]); in WritePathInnerFan()
/external/skqp/src/pathops/
DSkOpBuilder.cpp45 SkPathPriv::FirstDirection dir; in FixWinding()
46 if (one_contour(*path) && SkPathPriv::CheapComputeFirstDirection(*path, &dir)) { in FixWinding()
47 if (dir != SkPathPriv::kCCW_FirstDirection) { in FixWinding()
130 SkPathPriv::FirstDirection firstDir = SkPathPriv::kUnknown_FirstDirection; in resolve()
139 SkPathPriv::FirstDirection dir; in resolve()
140 if (!SkPathPriv::CheapComputeFirstDirection(*test, &dir)) { in resolve()
144 if (firstDir == SkPathPriv::kUnknown_FirstDirection) { in resolve()
/external/skqp/gm/
Dstrokefill.cpp290 SkASSERT(SkPathPriv::CheapIsFirstDirection(path2, SkPathPriv::kCCW_FirstDirection));
293 SkASSERT(!SkPathPriv::CheapComputeFirstDirection(path2, nullptr));
295 SkASSERT(SkPathPriv::CheapIsFirstDirection(path2, SkPathPriv::kCW_FirstDirection));
319 SkASSERT(!SkPathPriv::CheapComputeFirstDirection(path4, nullptr));
321 SkASSERT(SkPathPriv::CheapIsFirstDirection(path4, SkPathPriv::kCCW_FirstDirection));
328 SkASSERT(!SkPathPriv::CheapComputeFirstDirection(path4, nullptr));
330 SkASSERT(SkPathPriv::CheapIsFirstDirection(path4, SkPathPriv::kCW_FirstDirection));
/external/skia/src/core/
DSkRecords.cpp16 SkPathPriv::FirstDirection junk; in PreCachedPath()
17 (void)SkPathPriv::CheapComputeFirstDirection(*this, &junk); in PreCachedPath()
DSkPath.cpp64 return (path.countVerbs() - SkPathPriv::LeadingMoveToCount(path)) == 0; in is_degenerate()
287 SkPathFirstDirection direction = SkPathPriv::ComputeFirstDirection(*this); in conservativelyContainsRect()
297 for (auto [verb, pts, weight] : SkPathPriv::Iterate(*this)) { in conservativelyContainsRect()
311 int pointCount = SkPathPriv::PtsInVerb((unsigned) verb); in conservativelyContainsRect()
314 if (!SkPathPriv::AllPointsEq(pts, pointCount + 1)) { in conservativelyContainsRect()
351 SkASSERT((unsigned)fFillType < (1 << (32 - SkPathPriv::kPathRefGenIDBitCnt))); in getGenerationID()
352 genID |= static_cast<uint32_t>(fFillType) << SkPathPriv::kPathRefGenIDBitCnt; in getGenerationID()
453 return SkPathPriv::IsRectContour(*this, false, &currVerb, &pts, isClosed, direction, rect); in isRect()
457 return SkPathPriv::IsOval(*this, bounds, nullptr, nullptr); in isOval()
461 return SkPathPriv::IsRRect(*this, rrect, nullptr, nullptr); in isRRect()
[all …]
/external/skqp/src/core/
DSkRecords.cpp16 SkPathPriv::FirstDirection junk; in PreCachedPath()
17 (void)SkPathPriv::CheapComputeFirstDirection(*this, &junk); in PreCachedPath()
DSkPath.cpp68 fSaved = static_cast<SkPathPriv::FirstDirection>(fPath->getFirstDirection()); in SkAutoDisableDirectionCheck()
77 SkPathPriv::FirstDirection fSaved;
167 this->setFirstDirection(SkPathPriv::kUnknown_FirstDirection); in resetFields()
271 SkPathPriv::FirstDirection dir) { in check_edge_against_rect()
274 if (SkPathPriv::kCW_FirstDirection == dir) { in check_edge_against_rect()
300 SkPathPriv::FirstDirection direction; in conservativelyContainsRect()
301 if (!SkPathPriv::CheapComputeFirstDirection(*this, &direction)) { in conservativelyContainsRect()
376 SkASSERT((unsigned)fFillType < (1 << (32 - SkPathPriv::kPathRefGenIDBitCnt))); in getGenerationID()
377 genID |= static_cast<uint32_t>(fFillType) << SkPathPriv::kPathRefGenIDBitCnt; in getGenerationID()
655 return SkPathPriv::IsOval(*this, bounds, nullptr, nullptr); in isOval()
[all …]
DSkPath_serial.cpp74 int firstDir = isCCW ? SkPathPriv::kCCW_FirstDirection : SkPathPriv::kCW_FirstDirection; in writeToMemoryAsRRect()
173 case SkPathPriv::kCW_FirstDirection: in readAsRRect()
176 case SkPathPriv::kCCW_FirstDirection: in readAsRRect()
313 fFirstDirection = SkPathPriv::kUnknown_FirstDirection; in readFromMemory_LE3()
/external/skia/samplecode/
DSampleTessellatedWedge.cpp106 SkPathPriv::PointData(devPath), pointsPaint); in onDrawContent()
127 SkPathPriv::UpdatePathPoint(path, fPtIdx, pt + fCurr - fPrev); in doClick()
139 const SkPoint* pts = SkPathPriv::PointData(fPath); in onFindClickHandler()
170 for (auto [verb, pts, w] : SkPathPriv::Iterate(path)) { in dump_conic_max_errors()
188 for (auto [verb, pts, _] : SkPathPriv::Iterate(path)) { in update_weight()
/external/skia/gm/
Dstrokefill.cpp306 SkASSERT(SkPathPriv::ComputeFirstDirection(path2) == SkPathFirstDirection::kCCW);
309 SkASSERT(SkPathPriv::ComputeFirstDirection(path2) == SkPathFirstDirection::kUnknown);
311 SkASSERT(SkPathPriv::ComputeFirstDirection(path2) == SkPathFirstDirection::kCW);
335 SkASSERT(SkPathPriv::ComputeFirstDirection(path4) == SkPathFirstDirection::kUnknown);
337 SkASSERT(SkPathPriv::ComputeFirstDirection(path4) == SkPathFirstDirection::kCCW);
344 SkASSERT(SkPathPriv::ComputeFirstDirection(path4) == SkPathFirstDirection::kUnknown);
346 SkASSERT(SkPathPriv::ComputeFirstDirection(path4) == SkPathFirstDirection::kCW);
/external/skia/src/gpu/geometry/
DGrShape.cpp71 } 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()
DGrStyledShape.cpp98 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()
/external/skqp/src/gpu/
DGrShape.cpp187 const int conicWeightCnt = SkPathPriv::ConicWeightCnt(path); in path_key_from_data_size()
202 const int conicWeightCnt = SkPathPriv::ConicWeightCnt(path); in write_path_key_from_data()
207 memcpy(key, SkPathPriv::VerbData(path), verbCnt * sizeof(uint8_t)); in write_path_key_from_data()
214 memcpy(key, SkPathPriv::PointData(path), sizeof(SkPoint) * pointCnt); in write_path_key_from_data()
217 sk_careful_memcpy(key, SkPathPriv::ConicWeightData(path), sizeof(SkScalar) * conicWeightCnt); in write_path_key_from_data()
370 SkPathPriv::AddGenIDChangeListener(*lp, std::move(listener)); in addGenIDChangeListener()
525 } else if (SkPathPriv::IsRRect(this->path(), &rrect, &rrectDir, &rrectStart)) { in attemptToSimplifyPath()
532 } else if (SkPathPriv::IsOval(this->path(), &rect, &rrectDir, &rrectStart)) { in attemptToSimplifyPath()
539 } else if (SkPathPriv::IsSimpleClosedRect(this->path(), &rect, &rrectDir, &rrectStart)) { in attemptToSimplifyPath()
/external/skqp/src/gpu/effects/
DGrConvexPolyEffect.cpp100 SkPathPriv::FirstDirection dir; in Make()
104 if (!SkPathPriv::CheapComputeFirstDirection(path, &dir)) { in Make()
139 if (SkPathPriv::kCCW_FirstDirection == dir) { in Make()

12345