Lines Matching refs:curve
29 static bool can_add_curve(SkPath::Verb verb, SkPoint* curve) { in can_add_curve() argument
34 force_small_to_zero(&curve[index]); in can_add_curve()
36 return SkPath::kLine_Verb != verb || !SkDPoint::ApproximatelyEqual(curve[0], curve[1]); in can_add_curve()
86 SkPoint curve[4]; in preFetch() local
95 closeContour(curve[0], curveStart); in preFetch()
100 curveStart = curve[0] = pts[0]; in preFetch()
105 if (SkDPoint::ApproximatelyEqual(curve[0], pts[1])) { in preFetch()
108 fPathPts.top() = curve[0] = pts[1]; in preFetch()
116 curve[1] = pts[1]; in preFetch()
117 curve[2] = pts[2]; in preFetch()
118 verb = SkReduceOrder::Quad(curve, pts); in preFetch()
126 curve[1] = pts[1]; in preFetch()
127 curve[2] = pts[2]; in preFetch()
128 verb = SkReduceOrder::Quad(curve, pts); in preFetch()
139 curve[1] = pts[1]; in preFetch()
140 curve[2] = pts[2]; in preFetch()
141 curve[3] = pts[3]; in preFetch()
142 verb = SkReduceOrder::Cubic(curve, pts); in preFetch()
148 closeContour(curve[0], curveStart); in preFetch()
160 curve[0] = pts[ptCount]; in preFetch()
164 closeContour(curve[0], curveStart); in preFetch()
295 SkPoint* curve = SkPath::kCubic_Verb == verb in walk() local
297 split->fCanAdd = can_add_curve(split->fVerb, curve); in walk()
324 SkPoint* curve = SkPath::kCubic_Verb == split->fVerb in walk() local
326 SkAssertResult(can_add_curve(split->fVerb, curve)); in walk()
327 fContourBuilder.addCurve(split->fVerb, curve); in walk()