• Home
  • Raw
  • Download

Lines Matching refs:seg

185             SkContourMeasure::Segment* seg = fSegments.append();  in compute_quad_segs()  local
186 seg->fDistance = distance; in compute_quad_segs()
187 seg->fPtIndex = ptIndex; in compute_quad_segs()
188 seg->fType = kQuad_SegType; in compute_quad_segs()
189 seg->fTValue = maxt; in compute_quad_segs()
213 SkContourMeasure::Segment* seg = fSegments.append(); in compute_conic_segs() local
214 seg->fDistance = distance; in compute_conic_segs()
215 seg->fPtIndex = ptIndex; in compute_conic_segs()
216 seg->fType = kConic_SegType; in compute_conic_segs()
217 seg->fTValue = maxt; in compute_conic_segs()
238 SkContourMeasure::Segment* seg = fSegments.append(); in compute_cubic_segs() local
239 seg->fDistance = distance; in compute_cubic_segs()
240 seg->fPtIndex = ptIndex; in compute_cubic_segs()
241 seg->fType = kCubic_SegType; in compute_cubic_segs()
242 seg->fTValue = maxt; in compute_cubic_segs()
256 SkContourMeasure::Segment* seg = fSegments.append(); in compute_line_seg() local
257 seg->fDistance = distance; in compute_line_seg()
258 seg->fPtIndex = ptIndex; in compute_line_seg()
259 seg->fType = kLine_SegType; in compute_line_seg()
260 seg->fTValue = kMaxTValue; in compute_line_seg()
372 const SkContourMeasure::Segment* seg = fSegments.begin(); in buildSegments() local
378 while (seg < stop) { in buildSegments()
379 SkASSERT(seg->fDistance > distance); in buildSegments()
380 SkASSERT(seg->fPtIndex >= ptIndex); in buildSegments()
381 SkASSERT(seg->fTValue > 0); in buildSegments()
383 const SkContourMeasure::Segment* s = seg; in buildSegments()
390 distance = seg->fDistance; in buildSegments()
391 ptIndex = seg->fPtIndex; in buildSegments()
392 seg += 1; in buildSegments()
525 const Segment* seg = fSegments.begin(); in distanceToSegment() local
528 int index = SkTKSearch<Segment, SkScalar>(seg, count, distance); in distanceToSegment()
531 seg = &seg[index]; in distanceToSegment()
537 startD = seg[-1].fDistance; in distanceToSegment()
538 if (seg[-1].fPtIndex == seg->fPtIndex) { in distanceToSegment()
539 SkASSERT(seg[-1].fType == seg->fType); in distanceToSegment()
540 startT = seg[-1].getScalarT(); in distanceToSegment()
544 SkASSERT(seg->getScalarT() > startT); in distanceToSegment()
546 SkASSERT(seg->fDistance > startD); in distanceToSegment()
548 *t = startT + (seg->getScalarT() - startT) * (distance - startD) / (seg->fDistance - startD); in distanceToSegment()
549 return seg; in distanceToSegment()
568 const Segment* seg = this->distanceToSegment(distance, &t); in getPosTan() local
573 SkASSERT((unsigned)seg->fPtIndex < (unsigned)fPts.count()); in getPosTan()
574 compute_pos_tan(&fPts[seg->fPtIndex], seg->fType, t, pos, tangent); in getPosTan()
619 const Segment* seg = this->distanceToSegment(startD, &startT); in getSegment() local
627 SkASSERT(seg <= stopSeg); in getSegment()
629 compute_pos_tan(&fPts[seg->fPtIndex], seg->fType, startT, &p, nullptr); in getSegment()
633 if (seg->fPtIndex == stopSeg->fPtIndex) { in getSegment()
634 SkContourMeasure_segTo(&fPts[seg->fPtIndex], seg->fType, startT, stopT, dst); in getSegment()
637 SkContourMeasure_segTo(&fPts[seg->fPtIndex], seg->fType, startT, SK_Scalar1, dst); in getSegment()
638 seg = SkContourMeasure::Segment::Next(seg); in getSegment()
640 } while (seg->fPtIndex < stopSeg->fPtIndex); in getSegment()
641 SkContourMeasure_segTo(&fPts[seg->fPtIndex], seg->fType, 0, stopT, dst); in getSegment()