• Home
  • Raw
  • Download

Lines Matching refs:verb

47 static int contains_edge(SkPoint pts[4], SkPath::Verb verb, SkScalar weight, const SkPoint& edge) {  in contains_edge()  argument
49 bounds.setBounds(pts, kPtCount[verb] + 1); in contains_edge()
63 int count = (*CurveIntercept[verb * 2])(pts, weight, edge.fY, tVals); in contains_edge()
67 SkScalar intersectX = (*CurvePointAtT[verb])(pts, weight, tVals[index]).fX; in contains_edge()
77 if (pts[0].fX < edge.fX && pts[kPtCount[verb]].fX < edge.fX) { in contains_edge()
88 directions[index] = to_direction((*CurveSlopeAtT[verb])(pts, weight, tVals[index]).fY); in contains_edge()
100 static SkScalar conic_weight(const SkPath::Iter& iter, SkPath::Verb verb) { in conic_weight() argument
101 return SkPath::kConic_Verb == verb ? iter.conicWeight() : 1; in conic_weight()
104 static SkPoint left_edge(SkPoint pts[4], SkPath::Verb verb, SkScalar weight, in left_edge() argument
106 SkASSERT(SkPath::kLine_Verb <= verb && verb <= SkPath::kCubic_Verb); in left_edge()
111 if (SkPath::kLine_Verb == verb) { in left_edge()
114 } else if (SkPath::kQuad_Verb == verb) { in left_edge()
127 } else if (SkPath::kConic_Verb == verb) { in left_edge()
141 SkASSERT(SkPath::kCubic_Verb == verb); in left_edge()
184 for (auto [verb, pts, w] : SkPathPriv::Iterate(fPath)) { in contourBounds()
185 if (SkPathVerb::kMove == verb) { in contourBounds()
192 if (SkPathVerb::kLine <= verb && verb <= SkPathVerb::kCubic) { in contourBounds()
194 verbBounds.setBounds(&pts[kPtIndex[(int)verb]], kPtCount[(int)verb]); in contourBounds()
207 SkPath::Verb verb; in nextEdge() local
211 verb = iter.next(pts); in nextEdge()
218 if (SkPath::kLine_Verb > verb || verb > SkPath::kCubic_Verb) { in nextEdge()
222 for (int index = 1; index <= kPtCount[verb]; ++index) { in nextEdge()
232 winding += contains_edge(pts, verb, conic_weight(iter, verb), contour.fMinXY); in nextEdge()
237 SkPoint minXY = left_edge(pts, verb, conic_weight(iter, verb), &direction); in nextEdge()
256 } while (SkPath::kDone_Verb != verb); in nextEdge()
335 auto [verb, pts, w] = *iter; in reverseMarkedContours()
336 switch (verb) { in reverseMarkedContours()