Home
last modified time | relevance | path

Searched refs:segmentPoints (Results 1 – 1 of 1) sorted by relevance

/frameworks/base/core/jni/android/graphics/
DPath.cpp268 static void addMove(std::vector<SkPoint>& segmentPoints, std::vector<float>& lengths, in addMove() argument
274 segmentPoints.push_back(point); in addMove()
278 static void addLine(std::vector<SkPoint>& segmentPoints, std::vector<float>& lengths, in addLine() argument
280 if (segmentPoints.empty()) { in addLine()
281 segmentPoints.push_back(SkPoint::Make(0, 0)); in addLine()
283 } else if (segmentPoints.back() == toPoint) { in addLine()
286 float length = lengths.back() + SkPoint::Distance(segmentPoints.back(), toPoint); in addLine()
287 segmentPoints.push_back(toPoint); in addLine()
344 bezierCalculation bezierFunction, std::vector<SkPoint>& segmentPoints, in addBezier() argument
382 addLine(segmentPoints, lengths, iter->second); in addBezier()
[all …]