• Home
  • Raw
  • Download

Lines Matching refs:pts

117     void    quad_to(const SkPoint pts[3],
121 void cubic_to(const SkPoint pts[4],
239 void SkPathStroker::quad_to(const SkPoint pts[3], in quad_to()
243 if (!set_normal_unitnormal(pts[1], pts[2], fRadius, in quad_to()
246 this->line_to(pts[2], normalAB); in quad_to()
256 SkChopQuadAtHalf(pts, tmp); in quad_to()
261 SkAssertResult(set_normal_unitnormal(pts[0], pts[2], fRadius, in quad_to()
264 fOuter.quadTo( pts[1].fX + normalB.fX, pts[1].fY + normalB.fY, in quad_to()
265 pts[2].fX + normalBC->fX, pts[2].fY + normalBC->fY); in quad_to()
266 fInner.quadTo( pts[1].fX - normalB.fX, pts[1].fY - normalB.fY, in quad_to()
267 pts[2].fX - normalBC->fX, pts[2].fY - normalBC->fY); in quad_to()
271 void SkPathStroker::cubic_to(const SkPoint pts[4], in cubic_to()
275 SkVector ab = pts[1] - pts[0]; in cubic_to()
276 SkVector cd = pts[3] - pts[2]; in cubic_to()
284 this->line_to(pts[3], normalAB); in cubic_to()
291 ab = pts[2] - pts[0]; in cubic_to()
295 cd = pts[3] - pts[1]; in cubic_to()
302 bool degenerateBC = !set_normal_unitnormal(pts[1], pts[2], fRadius, in cubic_to()
314 SkChopCubicAtHalf(pts, tmp); in cubic_to()
326 normalB = pts[2] - pts[0]; in cubic_to()
330 normalC = pts[3] - pts[1]; in cubic_to()
334 SkVector unitBC = pts[2] - pts[1]; in cubic_to()
349 fOuter.cubicTo( pts[1].fX + normalB.fX, pts[1].fY + normalB.fY, in cubic_to()
350 pts[2].fX + normalC.fX, pts[2].fY + normalC.fY, in cubic_to()
351 pts[3].fX + normalCD->fX, pts[3].fY + normalCD->fY); in cubic_to()
353 fInner.cubicTo( pts[1].fX - normalB.fX, pts[1].fY - normalB.fY, in cubic_to()
354 pts[2].fX - normalC.fX, pts[2].fY - normalC.fY, in cubic_to()
355 pts[3].fX - normalCD->fX, pts[3].fY - normalCD->fY); in cubic_to()
375 SkPoint pts[3], tmp[5]; in quadTo() local
376 pts[0] = fPrevPt; in quadTo()
377 pts[1] = pt1; in quadTo()
378 pts[2] = pt2; in quadTo()
380 if (SkChopQuadAtMaxCurvature(pts, tmp) == 2) { in quadTo()
381 unitBC.setNormalize(pts[2].fX - pts[1].fX, pts[2].fY - pts[1].fY); in quadTo()
406 this->quad_to(pts, normalAB, unitAB, &normalBC, &unitBC, in quadTo()
436 SkPoint pts[4], tmp[13]; in cubicTo() local
441 pts[0] = fPrevPt; in cubicTo()
442 pts[1] = pt1; in cubicTo()
443 pts[2] = pt2; in cubicTo()
444 pts[3] = pt3; in cubicTo()
447 count = SkChopCubicAtMaxCurvature(pts, tmp, tValues); in cubicTo()
450 memcpy(tmp, pts, 4 * sizeof(SkPoint)); in cubicTo()
470 SkEvalCubicAt(pts, tValues[i - 1], &p, &v, &c); in cubicTo()
553 static void identity_proc(SkPoint pts[], int count) {} in identity_proc() argument
554 static void shift_down_2_proc(SkPoint pts[], int count) { in shift_down_2_proc() argument
556 pts->fX >>= 2; in shift_down_2_proc()
557 pts->fY >>= 2; in shift_down_2_proc()
558 pts += 1; in shift_down_2_proc()
561 #define APPLY_PROC(proc, pts, count) proc(pts, count) argument
563 #define APPLY_PROC(proc, pts, count) argument
577 void (*proc)(SkPoint pts[], int count) = identity_proc; in strokePath()
591 SkPoint pts[4]; in strokePath() local
594 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in strokePath()
597 APPLY_PROC(proc, &pts[0], 1); in strokePath()
598 stroker.moveTo(pts[0]); in strokePath()
601 APPLY_PROC(proc, &pts[1], 1); in strokePath()
602 stroker.lineTo(pts[1]); in strokePath()
606 APPLY_PROC(proc, &pts[1], 2); in strokePath()
607 stroker.quadTo(pts[1], pts[2]); in strokePath()
611 APPLY_PROC(proc, &pts[1], 3); in strokePath()
612 stroker.cubicTo(pts[1], pts[2], pts[3]); in strokePath()