Lines Matching refs:edges
78 static int clip_line(const SkRect& bounds, SkPoint p0, SkPoint p1, SkPoint edges[]) {
79 SkPoint* edgesStart = edges;
112 *edges++ = p0;
113 *edges++ = p1;
118 *edges++ = p0;
119 *edges++ = p1;
125 *edges++ = SkPoint::Make(bounds.left(), p0.fY);
126 *edges++ = SkPoint::Make(bounds.left(), y);
131 *edges++ = p0;
132 *edges++ = SkPoint::Make(bounds.right(), y);
133 *edges++ = SkPoint::Make(bounds.right(), p1.fY);
135 *edges++ = p0;
136 *edges++ = p1;
138 return SkToInt(edges - edgesStart);