Lines Matching refs:SkPath
33 static bool can_add_curve(SkPath::Verb verb, SkPoint* curve) { in can_add_curve()
34 if (SkPath::kMove_Verb == verb) { in can_add_curve()
40 return SkPath::kLine_Verb != verb || !SkDPoint::ApproximatelyEqual(curve[0], curve[1]); in can_add_curve()
43 void SkOpEdgeBuilder::addOperand(const SkPath& path) { in addOperand()
44 SkASSERT(fPathVerbs.count() > 0 && fPathVerbs.end()[-1] == SkPath::kDone_Verb); in addOperand()
67 *fPathVerbs.append() = SkPath::kLine_Verb; in closeContour()
72 if (SkPath::kLine_Verb == fPathVerbs[verbCount - 1] in closeContour()
80 *fPathVerbs.append() = SkPath::kClose_Verb; in closeContour()
92 auto verb = static_cast<SkPath::Verb>(pathVerb); in preFetch()
94 case SkPath::kMove_Verb: in preFetch()
104 case SkPath::kLine_Verb: in preFetch()
108 if (lastVerb != SkPath::kLine_Verb && lastVerb != SkPath::kMove_Verb) { in preFetch()
114 case SkPath::kQuad_Verb: in preFetch()
118 if (verb == SkPath::kMove_Verb) { in preFetch()
122 case SkPath::kConic_Verb: in preFetch()
126 if (SkPath::kQuad_Verb == verb && 1 != *w) { in preFetch()
127 verb = SkPath::kConic_Verb; in preFetch()
128 } else if (verb == SkPath::kMove_Verb) { in preFetch()
132 case SkPath::kCubic_Verb: in preFetch()
137 if (verb == SkPath::kMove_Verb) { in preFetch()
141 case SkPath::kClose_Verb: in preFetch()
145 case SkPath::kDone_Verb: in preFetch()
151 if (verb == SkPath::kConic_Verb) { in preFetch()
160 *fPathVerbs.append() = SkPath::kDone_Verb; in preFetch()
174 SkPath::Verb verb; in walk()
177 while ((verb = (SkPath::Verb) *verbPtr) != SkPath::kDone_Verb) { in walk()
183 case SkPath::kMove_Verb: in walk()
199 case SkPath::kLine_Verb: in walk()
202 case SkPath::kQuad_Verb: in walk()
218 SkPath::Verb v1 = SkReduceOrder::Quad(&pair[0], cStorage[0]); in walk()
219 SkPath::Verb v2 = SkReduceOrder::Quad(&pair[2], cStorage[1]); in walk()
220 SkPoint* curve1 = v1 != SkPath::kLine_Verb ? &pair[0] : cStorage[0]; in walk()
221 SkPoint* curve2 = v2 != SkPath::kLine_Verb ? &pair[2] : cStorage[1]; in walk()
232 case SkPath::kConic_Verb: { in walk()
248 SkPath::Verb v1 = SkReduceOrder::Conic(pair[0], cStorage[0]); in walk()
249 SkPath::Verb v2 = SkReduceOrder::Conic(pair[1], cStorage[1]); in walk()
250 SkPoint* curve1 = v1 != SkPath::kLine_Verb ? pair[0].fPts : cStorage[0]; in walk()
251 SkPoint* curve2 = v2 != SkPath::kLine_Verb ? pair[1].fPts : cStorage[1]; in walk()
261 case SkPath::kCubic_Verb: in walk()
277 SkPath::Verb fVerb; in walk()
291 SkPoint* curve = SkPath::kCubic_Verb == split->fVerb in walk()
320 SkPoint* curve = SkPath::kCubic_Verb == split->fVerb in walk()
329 case SkPath::kClose_Verb: in walk()