Lines Matching refs:pts
99 SkPoint pts[4];
103 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) {
115 SkPoint pts[4]; in get_path_weight() local
119 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in get_path_weight()
131 SkPoint pts[4]; in add_path_segment() local
137 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in add_path_segment()
142 result.lineTo((pts[0].fX + pts[1].fX) / 2, (pts[0].fY + pts[1].fY) / 2); in add_path_segment()
146 SkChopQuadAtHalf(pts, chop); in add_path_segment()
148 pts[1] = chop[3]; in add_path_segment()
153 conic.set(pts, iter.conicWeight()); in add_path_segment()
158 pts[1] = chop[1].fPts[1]; in add_path_segment()
163 SkChopCubicAtHalf(pts, chop); in add_path_segment()
165 pts[1] = chop[4]; in add_path_segment()
166 pts[2] = chop[5]; in add_path_segment()
179 result.moveTo(firstPt = pts[0]); in add_path_segment()
182 result.lineTo(lastPt = pts[1]); in add_path_segment()
185 result.quadTo(pts[1], lastPt = pts[2]); in add_path_segment()
188 result.conicTo(pts[1], lastPt = pts[2], weight); in add_path_segment()
191 result.cubicTo(pts[1], pts[2], lastPt = pts[3]); in add_path_segment()
207 SkPoint pts[4]; in delete_path_segment() local
211 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in delete_path_segment()
217 result.moveTo(pts[0]); in delete_path_segment()
220 result.lineTo(pts[1]); in delete_path_segment()
223 result.quadTo(pts[1], pts[2]); in delete_path_segment()
226 result.conicTo(pts[1], pts[2], iter.conicWeight()); in delete_path_segment()
229 result.cubicTo(pts[1], pts[2], pts[3]); in delete_path_segment()
245 SkPoint pts[4]; in set_path_weight() local
249 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in set_path_weight()
253 result.moveTo(pts[0]); in set_path_weight()
256 result.lineTo(pts[1]); in set_path_weight()
259 result.quadTo(pts[1], pts[2]); in set_path_weight()
262 result.conicTo(pts[1], pts[2], counter == index ? w : iter.conicWeight()); in set_path_weight()
265 result.cubicTo(pts[1], pts[2], pts[3]); in set_path_weight()
282 SkPoint pts[4]; in set_path_verb() local
286 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in set_path_verb()
296 pts[2] = pts[1]; in set_path_verb()
297 pts[1].fX = (pts[0].fX + pts[2].fX) / 2; in set_path_verb()
298 pts[1].fY = (pts[0].fY + pts[2].fY) / 2; in set_path_verb()
301 pts[3] = pts[1]; in set_path_verb()
302 pts[1].fX = (pts[0].fX * 2 + pts[3].fX) / 3; in set_path_verb()
303 pts[1].fY = (pts[0].fY * 2 + pts[3].fY) / 3; in set_path_verb()
304 pts[2].fX = (pts[0].fX + pts[3].fX * 2) / 3; in set_path_verb()
305 pts[2].fY = (pts[0].fY + pts[3].fY * 2) / 3; in set_path_verb()
316 pts[1] = pts[2]; in set_path_verb()
324 dQuad.set(pts); in set_path_verb()
326 pts[3] = pts[2]; in set_path_verb()
327 pts[1] = dCubic[1].asSkPoint(); in set_path_verb()
328 pts[2] = dCubic[2].asSkPoint(); in set_path_verb()
338 pts[1] = pts[3]; in set_path_verb()
344 dCubic.set(pts); in set_path_verb()
346 pts[1] = dQuad[1].asSkPoint(); in set_path_verb()
347 pts[2] = pts[3]; in set_path_verb()
362 result.moveTo(pts[0]); in set_path_verb()
365 result.lineTo(pts[1]); in set_path_verb()
368 result.quadTo(pts[1], pts[2]); in set_path_verb()
371 result.conicTo(pts[1], pts[2], weight); in set_path_verb()
374 result.cubicTo(pts[1], pts[2], pts[3]); in set_path_verb()
1003 SkPoint pts[4]; in draw_bisects() local
1009 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in draw_bisects()
1018 nextLast = pts[0] - pts[1]; in draw_bisects()
1019 vector = pts[1] - pts[0]; in draw_bisects()
1022 nextLast = pts[1] - pts[2]; in draw_bisects()
1024 nextLast = pts[0] - pts[2]; in draw_bisects()
1026 vector = pts[1] - pts[0]; in draw_bisects()
1028 vector = pts[2] - pts[0]; in draw_bisects()
1033 SkScalar t = SkFindQuadMaxCurvature(pts); in draw_bisects()
1035 SkPoint maxPt = SkEvalQuadAt(pts, t); in draw_bisects()
1036 SkVector tangent = SkEvalQuadTangentAt(pts, t); in draw_bisects()
1043 nextLast = pts[1] - pts[2]; in draw_bisects()
1045 nextLast = pts[0] - pts[2]; in draw_bisects()
1047 vector = pts[1] - pts[0]; in draw_bisects()
1049 vector = pts[2] - pts[0]; in draw_bisects()
1057 nextLast = pts[2] - pts[3]; in draw_bisects()
1059 nextLast = pts[1] - pts[3]; in draw_bisects()
1061 nextLast = pts[0] - pts[3]; in draw_bisects()
1064 vector = pts[0] - pts[1]; in draw_bisects()
1066 vector = pts[0] - pts[2]; in draw_bisects()
1068 vector = pts[0] - pts[3]; in draw_bisects()
1075 int tMaxCount = SkFindCubicMaxCurvature(pts, tMax); in draw_bisects()
1082 SkEvalCubicAt(pts, tMax[tIndex], &maxPt, &tangent, nullptr); in draw_bisects()
1099 firstPt = pts[0]; in draw_bisects()
1103 draw_bisect(canvas, lastVector, vector, pts[0]); in draw_bisects()
1113 SkPoint pts[4]; in draw_segment() local
1117 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in draw_segment()
1123 canvas->drawPoints(SkCanvas::kLines_PointMode, 2, pts, fActivePaint); in draw_segment()
1124 draw_points(canvas, pts, 2); in draw_segment()
1128 qPath.moveTo(pts[0]); in draw_segment()
1129 qPath.quadTo(pts[1], pts[2]); in draw_segment()
1131 draw_points(canvas, pts, 3); in draw_segment()
1135 conicPath.moveTo(pts[0]); in draw_segment()
1136 conicPath.conicTo(pts[1], pts[2], iter.conicWeight()); in draw_segment()
1138 draw_points(canvas, pts, 3); in draw_segment()
1142 int complex = SkDCubic::ComplexBreak(pts, loopT); in draw_segment()
1144 cPath.moveTo(pts[0]); in draw_segment()
1145 cPath.cubicTo(pts[1], pts[2], pts[3]); in draw_segment()
1147 draw_points(canvas, pts, 4); in draw_segment()
1166 SkPoint pts[4]; in hittest_verb() local
1170 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in hittest_verb()
1175 line.set(pts); in hittest_verb()
1184 quad.set(pts); in hittest_verb()
1194 conic.set(pts, w); in hittest_verb()
1203 cubic.set(pts); in hittest_verb()
1263 void quad_coverage(SkPoint pts[3], uint8_t* distanceMap, int w, int h) { in quad_coverage()
1264 SkScalar dist = pts[0].Distance(pts[0], pts[2]); in quad_coverage()
1266 (void) coverage(pts[0], pts[2], distanceMap, w, h); in quad_coverage()
1270 SkChopQuadAt(pts, split, 0.5f); in quad_coverage()
1275 void conic_coverage(SkPoint pts[3], SkScalar weight, uint8_t* distanceMap, int w, int h) { in conic_coverage()
1276 SkScalar dist = pts[0].Distance(pts[0], pts[2]); in conic_coverage()
1278 (void) coverage(pts[0], pts[2], distanceMap, w, h); in conic_coverage()
1283 conic.set(pts, weight); in conic_coverage()
1290 void cubic_coverage(SkPoint pts[4], uint8_t* distanceMap, int w, int h) { in cubic_coverage()
1291 SkScalar dist = pts[0].Distance(pts[0], pts[3]); in cubic_coverage()
1293 (void) coverage(pts[0], pts[3], distanceMap, w, h); in cubic_coverage()
1297 SkChopCubicAt(pts, split, 0.5f); in cubic_coverage()
1304 SkPoint pts[4]; in path_coverage() local
1307 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in path_coverage()
1310 (void) coverage(pts[0], pts[1], distanceMap, w, h); in path_coverage()
1313 quad_coverage(pts, distanceMap, w, h); in path_coverage()
1316 conic_coverage(pts, iter.conicWeight(), distanceMap, w, h); in path_coverage()
1319 cubic_coverage(pts, distanceMap, w, h); in path_coverage()
1339 SkPoint pts[4], firstPt, lastPt; in path_stroke()
1343 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in path_stroke()
1347 firstPt = pts[0]; in path_stroke()
1351 stroker.moveTo(pts[0]); in path_stroke()
1352 stroker.lineTo(pts[1]); in path_stroke()
1355 lastPt = pts[1]; in path_stroke()
1359 stroker.moveTo(pts[0]); in path_stroke()
1360 stroker.quadTo(pts[1], pts[2]); in path_stroke()
1363 lastPt = pts[2]; in path_stroke()
1367 stroker.moveTo(pts[0]); in path_stroke()
1368 stroker.conicTo(pts[1], pts[2], iter.conicWeight()); in path_stroke()
1371 lastPt = pts[2]; in path_stroke()
1375 stroker.moveTo(pts[0]); in path_stroke()
1376 stroker.cubicTo(pts[1], pts[2], pts[3]); in path_stroke()
1379 lastPt = pts[3]; in path_stroke()