Home
last modified time | relevance | path

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

/frameworks/base/core/jni/android/graphics/
DPath.cpp239 static void addMove(std::vector<SkPoint>& segmentPoints, std::vector<float>& lengths, in addMove() argument
245 segmentPoints.push_back(point); in addMove()
249 static void addLine(std::vector<SkPoint>& segmentPoints, std::vector<float>& lengths, in addLine() argument
251 if (segmentPoints.empty()) { in addLine()
252 segmentPoints.push_back(SkPoint::Make(0, 0)); in addLine()
254 } else if (segmentPoints.back() == toPoint) { in addLine()
257 float length = lengths.back() + SkPoint::Distance(segmentPoints.back(), toPoint); in addLine()
258 segmentPoints.push_back(toPoint); in addLine()
315 bezierCalculation bezierFunction, std::vector<SkPoint>& segmentPoints, in addBezier() argument
353 addLine(segmentPoints, lengths, iter->second); in addBezier()
[all …]