Lines Matching refs:segmentPoints
237 static void addMove(std::vector<SkPoint>& segmentPoints, std::vector<float>& lengths, in addMove() argument
243 segmentPoints.push_back(point); in addMove()
247 static void addLine(std::vector<SkPoint>& segmentPoints, std::vector<float>& lengths, in addLine() argument
249 if (segmentPoints.empty()) { in addLine()
250 segmentPoints.push_back(SkPoint::Make(0, 0)); in addLine()
252 } else if (segmentPoints.back() == toPoint) { in addLine()
255 float length = lengths.back() + SkPoint::Distance(segmentPoints.back(), toPoint); in addLine()
256 segmentPoints.push_back(toPoint); in addLine()
313 bezierCalculation bezierFunction, std::vector<SkPoint>& segmentPoints, in addBezier() argument
351 addLine(segmentPoints, lengths, iter->second); in addBezier()
356 const SkPoint* points, std::vector<SkPoint>& segmentPoints, in createVerbSegments() argument
360 addMove(segmentPoints, lengths, points[0]); in createVerbSegments()
363 addLine(segmentPoints, lengths, points[0]); in createVerbSegments()
366 addLine(segmentPoints, lengths, points[1]); in createVerbSegments()
369 addBezier(points, quadraticBezierCalculation, segmentPoints, lengths, in createVerbSegments()
373 addBezier(points, cubicBezierCalculation, segmentPoints, lengths, in createVerbSegments()
383 addBezier(quad, quadraticBezierCalculation, segmentPoints, lengths, in createVerbSegments()
415 std::vector<SkPoint> segmentPoints; in approximate() local
421 createVerbSegments(pathIter, verb, points, segmentPoints, lengths, in approximate()
425 if (segmentPoints.empty()) { in approximate()
428 addMove(segmentPoints, lengths, path->getPoint(0)); in approximate()
431 addMove(segmentPoints, lengths, SkPoint()); in approximate()
438 segmentPoints.push_back(segmentPoints.back()); in approximate()
443 size_t numPoints = segmentPoints.size(); in approximate()
450 const SkPoint& point = segmentPoints[i]; in approximate()