• Home
  • Raw
  • Download

Lines Matching refs:SkPath

29 static bool can_add_curve(SkPath::Verb verb, SkPoint* curve) {  in can_add_curve()
30 if (SkPath::kMove_Verb == verb) { in can_add_curve()
36 return SkPath::kLine_Verb != verb || !SkDPoint::ApproximatelyEqual(curve[0], curve[1]); in can_add_curve()
39 void SkOpEdgeBuilder::addOperand(const SkPath& path) { in addOperand()
40 SkASSERT(fPathVerbs.count() > 0 && fPathVerbs.end()[-1] == SkPath::kDone_Verb); in addOperand()
63 *fPathVerbs.append() = SkPath::kLine_Verb; in closeContour()
68 if (SkPath::kLine_Verb == fPathVerbs[verbCount - 1] in closeContour()
76 *fPathVerbs.append() = SkPath::kClose_Verb; in closeContour()
84 SkPath::RawIter iter(*fPath); in preFetch()
88 SkPath::Verb verb; in preFetch()
93 case SkPath::kMove_Verb: in preFetch()
103 case SkPath::kLine_Verb: in preFetch()
107 if (lastVerb != SkPath::kLine_Verb && lastVerb != SkPath::kMove_Verb) { in preFetch()
113 case SkPath::kQuad_Verb: in preFetch()
119 if (verb == SkPath::kMove_Verb) { in preFetch()
123 case SkPath::kConic_Verb: in preFetch()
129 if (SkPath::kQuad_Verb == verb && 1 != iter.conicWeight()) { in preFetch()
130 verb = SkPath::kConic_Verb; in preFetch()
131 } else if (verb == SkPath::kMove_Verb) { in preFetch()
135 case SkPath::kCubic_Verb: in preFetch()
143 if (verb == SkPath::kMove_Verb) { in preFetch()
147 case SkPath::kClose_Verb: in preFetch()
151 case SkPath::kDone_Verb: in preFetch()
157 if (verb == SkPath::kConic_Verb) { in preFetch()
162 } while (verb != SkPath::kDone_Verb); in preFetch()
166 *fPathVerbs.append() = SkPath::kDone_Verb; in preFetch()
180 SkPath::Verb verb; in walk()
183 while ((verb = (SkPath::Verb) *verbPtr) != SkPath::kDone_Verb) { in walk()
189 case SkPath::kMove_Verb: in walk()
205 case SkPath::kLine_Verb: in walk()
208 case SkPath::kQuad_Verb: in walk()
224 SkPath::Verb v1 = SkReduceOrder::Quad(&pair[0], cStorage[0]); in walk()
225 SkPath::Verb v2 = SkReduceOrder::Quad(&pair[2], cStorage[1]); in walk()
226 SkPoint* curve1 = v1 != SkPath::kLine_Verb ? &pair[0] : cStorage[0]; in walk()
227 SkPoint* curve2 = v2 != SkPath::kLine_Verb ? &pair[2] : cStorage[1]; in walk()
238 case SkPath::kConic_Verb: { in walk()
254 SkPath::Verb v1 = SkReduceOrder::Conic(pair[0], cStorage[0]); in walk()
255 SkPath::Verb v2 = SkReduceOrder::Conic(pair[1], cStorage[1]); in walk()
256 SkPoint* curve1 = v1 != SkPath::kLine_Verb ? pair[0].fPts : cStorage[0]; in walk()
257 SkPoint* curve2 = v2 != SkPath::kLine_Verb ? pair[1].fPts : cStorage[1]; in walk()
267 case SkPath::kCubic_Verb: in walk()
283 SkPath::Verb fVerb; in walk()
297 SkPoint* curve = SkPath::kCubic_Verb == verb in walk()
326 SkPoint* curve = SkPath::kCubic_Verb == split->fVerb in walk()
335 case SkPath::kClose_Verb: in walk()