• Home
  • Raw
  • Download

Lines Matching refs:segments

363                                        PathSegmentArray* segments) {  in add_line_to_segment()  argument
364 segments->push_back(); in add_line_to_segment()
365 segments->back().fType = PathSegment::kLine; in add_line_to_segment()
366 segments->back().fPts[0] = pts[0]; in add_line_to_segment()
367 segments->back().fPts[1] = pts[1]; in add_line_to_segment()
369 segments->back().init(); in add_line_to_segment()
373 PathSegmentArray* segments) { in add_quad_segment() argument
381 add_line_to_segment(line_pts, segments); in add_quad_segment()
384 segments->push_back(); in add_quad_segment()
385 segments->back().fType = PathSegment::kQuad; in add_quad_segment()
386 segments->back().fPts[0] = pts[0]; in add_quad_segment()
387 segments->back().fPts[1] = pts[1]; in add_quad_segment()
388 segments->back().fPts[2] = pts[2]; in add_quad_segment()
390 segments->back().init(); in add_quad_segment()
395 PathSegmentArray* segments) { in add_cubic_segments() argument
400 add_quad_segment(&quads[q], segments); in add_cubic_segments()
645 static void calculate_distance_field_data(PathSegmentArray* segments, in calculate_distance_field_data() argument
648 int count = segments->count(); in calculate_distance_field_data()
650 PathSegment& segment = (*segments)[a]; in calculate_distance_field_data()
792 SkSTArray<15, PathSegment, true> segments; in GrGenerateDistanceFieldFromPath() local
801 add_line_to_segment(pts, &segments); in GrGenerateDistanceFieldFromPath()
805 add_quad_segment(pts, &segments); in GrGenerateDistanceFieldFromPath()
812 add_quad_segment(quadPts + 2*i, &segments); in GrGenerateDistanceFieldFromPath()
817 add_cubic_segments(pts, &segments); in GrGenerateDistanceFieldFromPath()
828 calculate_distance_field_data(&segments, dataPtr, width, height); in GrGenerateDistanceFieldFromPath()