Lines Matching refs:pts
100 SkPoint pts[4];
104 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) {
116 SkPoint pts[4]; in get_path_weight() local
120 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in get_path_weight()
132 SkPoint pts[4]; in set_path_pt() local
137 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in set_path_pt()
160 pts[index - startIndex] = pt; in set_path_pt()
165 result.moveTo(pts[0]); in set_path_pt()
168 result.lineTo(pts[1]); in set_path_pt()
172 result.quadTo(pts[1], pts[2]); in set_path_pt()
176 result.conicTo(pts[1], pts[2], iter.conicWeight()); in set_path_pt()
180 result.cubicTo(pts[1], pts[2], pts[3]); in set_path_pt()
204 SkPoint pts[4]; in add_path_segment() local
210 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in add_path_segment()
215 result.lineTo((pts[0].fX + pts[1].fX) / 2, (pts[0].fY + pts[1].fY) / 2); in add_path_segment()
219 SkChopQuadAtHalf(pts, chop); in add_path_segment()
221 pts[1] = chop[3]; in add_path_segment()
226 conic.set(pts, iter.conicWeight()); in add_path_segment()
231 pts[1] = chop[1].fPts[1]; in add_path_segment()
236 SkChopCubicAtHalf(pts, chop); in add_path_segment()
238 pts[1] = chop[4]; in add_path_segment()
239 pts[2] = chop[5]; in add_path_segment()
252 result.moveTo(firstPt = pts[0]); in add_path_segment()
255 result.lineTo(lastPt = pts[1]); in add_path_segment()
258 result.quadTo(pts[1], lastPt = pts[2]); in add_path_segment()
261 result.conicTo(pts[1], lastPt = pts[2], weight); in add_path_segment()
264 result.cubicTo(pts[1], pts[2], lastPt = pts[3]); in add_path_segment()
280 SkPoint pts[4]; in delete_path_segment() local
284 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in delete_path_segment()
290 result.moveTo(pts[0]); in delete_path_segment()
293 result.lineTo(pts[1]); in delete_path_segment()
296 result.quadTo(pts[1], pts[2]); in delete_path_segment()
299 result.conicTo(pts[1], pts[2], iter.conicWeight()); in delete_path_segment()
302 result.cubicTo(pts[1], pts[2], pts[3]); in delete_path_segment()
318 SkPoint pts[4]; in set_path_weight() local
322 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in set_path_weight()
326 result.moveTo(pts[0]); in set_path_weight()
329 result.lineTo(pts[1]); in set_path_weight()
332 result.quadTo(pts[1], pts[2]); in set_path_weight()
335 result.conicTo(pts[1], pts[2], counter == index ? w : iter.conicWeight()); in set_path_weight()
338 result.cubicTo(pts[1], pts[2], pts[3]); in set_path_weight()
355 SkPoint pts[4]; in set_path_verb() local
359 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in set_path_verb()
369 pts[2] = pts[1]; in set_path_verb()
370 pts[1].fX = (pts[0].fX + pts[2].fX) / 2; in set_path_verb()
371 pts[1].fY = (pts[0].fY + pts[2].fY) / 2; in set_path_verb()
374 pts[3] = pts[1]; in set_path_verb()
375 pts[1].fX = (pts[0].fX * 2 + pts[3].fX) / 3; in set_path_verb()
376 pts[1].fY = (pts[0].fY * 2 + pts[3].fY) / 3; in set_path_verb()
377 pts[2].fX = (pts[0].fX + pts[3].fX * 2) / 3; in set_path_verb()
378 pts[2].fY = (pts[0].fY + pts[3].fY * 2) / 3; in set_path_verb()
389 pts[1] = pts[2]; in set_path_verb()
397 dQuad.set(pts); in set_path_verb()
399 pts[3] = pts[2]; in set_path_verb()
400 pts[1] = dCubic[1].asSkPoint(); in set_path_verb()
401 pts[2] = dCubic[2].asSkPoint(); in set_path_verb()
411 pts[1] = pts[3]; in set_path_verb()
417 dCubic.set(pts); in set_path_verb()
419 pts[1] = dQuad[1].asSkPoint(); in set_path_verb()
420 pts[2] = pts[3]; in set_path_verb()
435 result.moveTo(pts[0]); in set_path_verb()
438 result.lineTo(pts[1]); in set_path_verb()
441 result.quadTo(pts[1], pts[2]); in set_path_verb()
444 result.conicTo(pts[1], pts[2], weight); in set_path_verb()
447 result.cubicTo(pts[1], pts[2], pts[3]); in set_path_verb()
1079 SkPoint pts[4]; in draw_bisects() local
1085 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in draw_bisects()
1094 nextLast = pts[0] - pts[1]; in draw_bisects()
1095 vector = pts[1] - pts[0]; in draw_bisects()
1098 nextLast = pts[1] - pts[2]; in draw_bisects()
1100 nextLast = pts[0] - pts[2]; in draw_bisects()
1102 vector = pts[1] - pts[0]; in draw_bisects()
1104 vector = pts[2] - pts[0]; in draw_bisects()
1109 SkScalar t = SkFindQuadMaxCurvature(pts); in draw_bisects()
1111 SkPoint maxPt = SkEvalQuadAt(pts, t); in draw_bisects()
1112 SkVector tangent = SkEvalQuadTangentAt(pts, t); in draw_bisects()
1119 nextLast = pts[1] - pts[2]; in draw_bisects()
1121 nextLast = pts[0] - pts[2]; in draw_bisects()
1123 vector = pts[1] - pts[0]; in draw_bisects()
1125 vector = pts[2] - pts[0]; in draw_bisects()
1133 nextLast = pts[2] - pts[3]; in draw_bisects()
1135 nextLast = pts[1] - pts[3]; in draw_bisects()
1137 nextLast = pts[0] - pts[3]; in draw_bisects()
1140 vector = pts[0] - pts[1]; in draw_bisects()
1142 vector = pts[0] - pts[2]; in draw_bisects()
1144 vector = pts[0] - pts[3]; in draw_bisects()
1151 int tMaxCount = SkFindCubicMaxCurvature(pts, tMax); in draw_bisects()
1158 SkEvalCubicAt(pts, tMax[tIndex], &maxPt, &tangent, nullptr); in draw_bisects()
1175 firstPt = pts[0]; in draw_bisects()
1179 draw_bisect(canvas, lastVector, vector, pts[0]); in draw_bisects()
1189 SkPoint pts[4]; in draw_segment() local
1193 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in draw_segment()
1199 canvas->drawPoints(SkCanvas::kLines_PointMode, 2, pts, fActivePaint); in draw_segment()
1200 draw_points(canvas, pts, 2); in draw_segment()
1204 qPath.moveTo(pts[0]); in draw_segment()
1205 qPath.quadTo(pts[1], pts[2]); in draw_segment()
1207 draw_points(canvas, pts, 3); in draw_segment()
1211 conicPath.moveTo(pts[0]); in draw_segment()
1212 conicPath.conicTo(pts[1], pts[2], iter.conicWeight()); in draw_segment()
1214 draw_points(canvas, pts, 3); in draw_segment()
1218 int complex = SkDCubic::ComplexBreak(pts, loopT); in draw_segment()
1220 cPath.moveTo(pts[0]); in draw_segment()
1221 cPath.cubicTo(pts[1], pts[2], pts[3]); in draw_segment()
1223 draw_points(canvas, pts, 4); in draw_segment()
1242 SkPoint pts[4]; in hittest_verb() local
1246 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in hittest_verb()
1251 line.set(pts); in hittest_verb()
1260 quad.set(pts); in hittest_verb()
1270 conic.set(pts, w); in hittest_verb()
1279 cubic.set(pts); in hittest_verb()
1339 void quad_coverage(SkPoint pts[3], uint8_t* distanceMap, int w, int h) { in quad_coverage()
1340 SkScalar dist = pts[0].Distance(pts[0], pts[2]); in quad_coverage()
1342 (void) coverage(pts[0], pts[2], distanceMap, w, h); in quad_coverage()
1346 SkChopQuadAt(pts, split, 0.5f); in quad_coverage()
1351 void conic_coverage(SkPoint pts[3], SkScalar weight, uint8_t* distanceMap, int w, int h) { in conic_coverage()
1352 SkScalar dist = pts[0].Distance(pts[0], pts[2]); in conic_coverage()
1354 (void) coverage(pts[0], pts[2], distanceMap, w, h); in conic_coverage()
1359 conic.set(pts, weight); in conic_coverage()
1366 void cubic_coverage(SkPoint pts[4], uint8_t* distanceMap, int w, int h) { in cubic_coverage()
1367 SkScalar dist = pts[0].Distance(pts[0], pts[3]); in cubic_coverage()
1369 (void) coverage(pts[0], pts[3], distanceMap, w, h); in cubic_coverage()
1373 SkChopCubicAt(pts, split, 0.5f); in cubic_coverage()
1380 SkPoint pts[4]; in path_coverage() local
1383 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in path_coverage()
1386 (void) coverage(pts[0], pts[1], distanceMap, w, h); in path_coverage()
1389 quad_coverage(pts, distanceMap, w, h); in path_coverage()
1392 conic_coverage(pts, iter.conicWeight(), distanceMap, w, h); in path_coverage()
1395 cubic_coverage(pts, distanceMap, w, h); in path_coverage()
1415 SkPoint pts[4], firstPt, lastPt; in path_stroke()
1419 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in path_stroke()
1423 firstPt = pts[0]; in path_stroke()
1427 stroker.moveTo(pts[0]); in path_stroke()
1428 stroker.lineTo(pts[1]); in path_stroke()
1431 lastPt = pts[1]; in path_stroke()
1435 stroker.moveTo(pts[0]); in path_stroke()
1436 stroker.quadTo(pts[1], pts[2]); in path_stroke()
1439 lastPt = pts[2]; in path_stroke()
1443 stroker.moveTo(pts[0]); in path_stroke()
1444 stroker.conicTo(pts[1], pts[2], iter.conicWeight()); in path_stroke()
1447 lastPt = pts[2]; in path_stroke()
1451 stroker.moveTo(pts[0]); in path_stroke()
1452 stroker.cubicTo(pts[1], pts[2], pts[3]); in path_stroke()
1455 lastPt = pts[3]; in path_stroke()