Lines Matching refs:lengths

253     static void addMove(std::vector<SkPoint>& segmentPoints, std::vector<float>& lengths,  in addMove()  argument
256 if (!lengths.empty()) { in addMove()
257 length = lengths.back(); in addMove()
260 lengths.push_back(length); in addMove()
263 static void addLine(std::vector<SkPoint>& segmentPoints, std::vector<float>& lengths, in addLine() argument
267 lengths.push_back(0); in addLine()
271 float length = lengths.back() + SkPoint::Distance(segmentPoints.back(), toPoint); in addLine()
273 lengths.push_back(length); in addLine()
330 std::vector<float>& lengths, float errorSquared, bool doubleCheckDivision) { in addBezier() argument
367 addLine(segmentPoints, lengths, iter->second); in addBezier()
373 std::vector<float>& lengths, float errorSquared, float errorConic) { in createVerbSegments() argument
376 addMove(segmentPoints, lengths, points[0]); in createVerbSegments()
379 addLine(segmentPoints, lengths, points[0]); in createVerbSegments()
382 addLine(segmentPoints, lengths, points[1]); in createVerbSegments()
385 addBezier(points, quadraticBezierCalculation, segmentPoints, lengths, in createVerbSegments()
389 addBezier(points, cubicBezierCalculation, segmentPoints, lengths, in createVerbSegments()
399 addBezier(quad, quadraticBezierCalculation, segmentPoints, lengths, in createVerbSegments()
432 std::vector<float> lengths; in approximate() local
437 createVerbSegments(pathIter, verb, points, segmentPoints, lengths, in approximate()
444 addMove(segmentPoints, lengths, path->getPoint(0)); in approximate()
447 addMove(segmentPoints, lengths, SkPoint()); in approximate()
451 float totalLength = lengths.back(); in approximate()
455 lengths.push_back(1); in approximate()
467 approximation[approximationIndex++] = lengths[i] / totalLength; in approximate()