Lines Matching defs:pts
175 int SkLineClipper::ClipLine(const SkPoint pts[], const SkRect& clip, SkPoint lines[],
179 if (pts[0].fY < pts[1].fY) {
189 if (pts[index1].fY <= clip.fTop) { // we're above the clip
192 if (pts[index0].fY >= clip.fBottom) { // we're below the clip
199 memcpy(tmp, pts, sizeof(tmp));
202 if (pts[index0].fY < clip.fTop) {
203 tmp[index0].set(sect_with_horizontal(pts, clip.fTop), clip.fTop);
204 SkASSERT(is_between_unsorted(tmp[index0].fX, pts[0].fX, pts[1].fX));
207 tmp[index1].set(sect_with_horizontal(pts, clip.fBottom), clip.fBottom);
208 SkASSERT(is_between_unsorted(tmp[index1].fX, pts[0].fX, pts[1].fX));
219 if (pts[0].fX < pts[1].fX) {
268 // copy the pts in reverse order to maintain winding order