• Home
  • Raw
  • Download

Lines Matching refs:curve

33 static bool can_add_curve(SkPath::Verb verb, SkPoint* curve) {  in can_add_curve()  argument
38 curve[index] = force_small_to_zero(curve[index]); in can_add_curve()
40 return SkPath::kLine_Verb != verb || !SkDPoint::ApproximatelyEqual(curve[0], curve[1]); in can_add_curve()
89 SkPoint curve[4]; in preFetch() local
96 closeContour(curve[0], curveStart); in preFetch()
99 curve[0] = force_small_to_zero(pts[0]); in preFetch()
100 *fPathPts.append() = curve[0]; in preFetch()
101 curveStart = curve[0]; in preFetch()
105 curve[1] = force_small_to_zero(pts[1]); in preFetch()
106 if (SkDPoint::ApproximatelyEqual(curve[0], curve[1])) { in preFetch()
109 fPathPts.top() = curve[0] = curve[1]; in preFetch()
115 curve[1] = force_small_to_zero(pts[1]); in preFetch()
116 curve[2] = force_small_to_zero(pts[2]); in preFetch()
117 verb = SkReduceOrder::Quad(curve, curve); in preFetch()
123 curve[1] = force_small_to_zero(pts[1]); in preFetch()
124 curve[2] = force_small_to_zero(pts[2]); in preFetch()
125 verb = SkReduceOrder::Quad(curve, curve); in preFetch()
133 curve[1] = force_small_to_zero(pts[1]); in preFetch()
134 curve[2] = force_small_to_zero(pts[2]); in preFetch()
135 curve[3] = force_small_to_zero(pts[3]); in preFetch()
136 verb = SkReduceOrder::Cubic(curve, curve); in preFetch()
142 closeContour(curve[0], curveStart); in preFetch()
150 fPathPts.append(ptCount, &curve[1]); in preFetch()
154 curve[0] = curve[ptCount]; in preFetch()
158 closeContour(curve[0], curveStart); in preFetch()
291 SkPoint* curve = SkPath::kCubic_Verb == split->fVerb in walk() local
293 split->fCanAdd = can_add_curve(split->fVerb, curve); in walk()
320 SkPoint* curve = SkPath::kCubic_Verb == split->fVerb in walk() local
322 if (!can_add_curve(split->fVerb, curve)) { in walk()
325 fContourBuilder.addCurve(split->fVerb, curve); in walk()