Lines Matching refs:distance
147 SkScalar distance, int mint, int maxt, int ptIndex) { in compute_quad_segs() argument
153 distance = this->compute_quad_segs(tmp, distance, mint, halft, ptIndex); in compute_quad_segs()
154 distance = this->compute_quad_segs(&tmp[2], distance, halft, maxt, ptIndex); in compute_quad_segs()
157 SkScalar prevD = distance; in compute_quad_segs()
158 distance += d; in compute_quad_segs()
159 if (distance > prevD) { in compute_quad_segs()
161 seg->fDistance = distance; in compute_quad_segs()
167 return distance; in compute_quad_segs()
170 SkScalar SkPathMeasure::compute_conic_segs(const SkConic& conic, SkScalar distance, in compute_conic_segs() argument
176 distance = this->compute_conic_segs(conic, distance, mint, minPt, halft, halfPt, ptIndex); in compute_conic_segs()
177 distance = this->compute_conic_segs(conic, distance, halft, halfPt, maxt, maxPt, ptIndex); in compute_conic_segs()
180 SkScalar prevD = distance; in compute_conic_segs()
181 distance += d; in compute_conic_segs()
182 if (distance > prevD) { in compute_conic_segs()
184 seg->fDistance = distance; in compute_conic_segs()
190 return distance; in compute_conic_segs()
194 SkScalar distance, int mint, int maxt, int ptIndex) { in compute_cubic_segs() argument
200 distance = this->compute_cubic_segs(tmp, distance, mint, halft, ptIndex); in compute_cubic_segs()
201 distance = this->compute_cubic_segs(&tmp[3], distance, halft, maxt, ptIndex); in compute_cubic_segs()
204 SkScalar prevD = distance; in compute_cubic_segs()
205 distance += d; in compute_cubic_segs()
206 if (distance > prevD) { in compute_cubic_segs()
208 seg->fDistance = distance; in compute_cubic_segs()
214 return distance; in compute_cubic_segs()
220 SkScalar distance = 0; in buildSegments() local
249 SkScalar prevD = distance; in buildSegments()
250 distance += d; in buildSegments()
251 if (distance > prevD) { in buildSegments()
253 seg->fDistance = distance; in buildSegments()
263 SkScalar prevD = distance; in buildSegments()
267 distance += length; in buildSegments()
269 seg->fDistance = distance; in buildSegments()
275 distance = this->compute_quad_segs(pts, distance, 0, kMaxTValue, ptIndex); in buildSegments()
277 if (distance > prevD) { in buildSegments()
285 SkScalar prevD = distance; in buildSegments()
286 distance = this->compute_conic_segs(conic, distance, 0, conic.fPts[0], in buildSegments()
288 if (distance > prevD) { in buildSegments()
299 SkScalar prevD = distance; in buildSegments()
300 distance = this->compute_cubic_segs(pts, distance, 0, kMaxTValue, ptIndex); in buildSegments()
301 if (distance > prevD) { in buildSegments()
317 fLength = distance; in buildSegments()
326 SkScalar distance = 0; in buildSegments() local
329 SkASSERT(seg->fDistance > distance); in buildSegments()
340 distance = seg->fDistance; in buildSegments()
555 SkScalar distance, SkScalar* t) { in distanceToSegment() argument
557 SkASSERT(distance >= 0 && distance <= length); in distanceToSegment()
562 int index = SkTKSearch<Segment, SkScalar>(seg, count, distance); in distanceToSegment()
579 SkASSERT(distance >= startD); in distanceToSegment()
583 distance - startD, in distanceToSegment()
588 bool SkPathMeasure::getPosTan(SkScalar distance, SkPoint* pos, in getPosTan() argument
602 if (distance < 0) { in getPosTan()
603 distance = 0; in getPosTan()
604 } else if (distance > length) { in getPosTan()
605 distance = length; in getPosTan()
609 const Segment* seg = this->distanceToSegment(distance, &t); in getPosTan()
615 bool SkPathMeasure::getMatrix(SkScalar distance, SkMatrix* matrix, in getMatrix() argument
624 if (this->getPosTan(distance, &position, &tangent)) { in getMatrix()