Lines Matching refs:index1
97 int index0, index1; in IntersectLine() local
101 index1 = 1; in IntersectLine()
104 index1 = 0; in IntersectLine()
114 if (tmp[index1].fY > clip.fBottom) { in IntersectLine()
115 tmp[index1].set(sect_with_horizontal(src, clip.fBottom), clip.fBottom); in IntersectLine()
120 index1 = 1; in IntersectLine()
123 index1 = 0; in IntersectLine()
127 if ((tmp[index1].fX <= clip.fLeft || tmp[index0].fX >= clip.fRight) && in IntersectLine()
128 tmp[index0].fX < tmp[index1].fX) { in IntersectLine()
136 if (tmp[index1].fX > clip.fRight) { in IntersectLine()
137 tmp[index1].set(clip.fRight, sect_with_vertical(src, clip.fRight)); in IntersectLine()
188 int index0, index1; in ClipLine() local
192 index1 = 1; in ClipLine()
195 index1 = 0; in ClipLine()
200 if (pts[index1].fY <= clip.fTop) { // we're above the clip in ClipLine()
217 if (tmp[index1].fY > clip.fBottom) { in ClipLine()
218 tmp[index1].set(sect_with_horizontal(pts, clip.fBottom), clip.fBottom); in ClipLine()
219 SkASSERT(is_between_unsorted(tmp[index1].fX, pts[0].fX, pts[1].fX)); in ClipLine()
232 index1 = 1; in ClipLine()
236 index1 = 0; in ClipLine()
240 if (tmp[index1].fX <= clip.fLeft) { // wholly to the left in ClipLine()
265 if (tmp[index1].fX > clip.fRight) { in ClipLine()
269 r->set(clip.fRight, tmp[index1].fY); in ClipLine()
271 *r = tmp[index1]; in ClipLine()