Lines Matching refs:index1
110 int index0, index1; in IntersectLine() local
114 index1 = 1; in IntersectLine()
117 index1 = 0; in IntersectLine()
127 if (tmp[index1].fY > clip.fBottom) { in IntersectLine()
128 tmp[index1].set(sect_with_horizontal(src, clip.fBottom), clip.fBottom); in IntersectLine()
133 index1 = 1; in IntersectLine()
136 index1 = 0; in IntersectLine()
140 if ((tmp[index1].fX <= clip.fLeft || tmp[index0].fX >= clip.fRight)) { in IntersectLine()
151 if (tmp[index1].fX > clip.fRight) { in IntersectLine()
152 tmp[index1].set(clip.fRight, sect_with_vertical(src, clip.fRight)); in IntersectLine()
177 int index0, index1; in ClipLine() local
181 index1 = 1; in ClipLine()
184 index1 = 0; in ClipLine()
189 if (pts[index1].fY <= clip.fTop) { // we're above the clip in ClipLine()
206 if (tmp[index1].fY > clip.fBottom) { in ClipLine()
207 tmp[index1].set(sect_with_horizontal(pts, clip.fBottom), clip.fBottom); in ClipLine()
208 SkASSERT(is_between_unsorted(tmp[index1].fX, pts[0].fX, pts[1].fX)); in ClipLine()
221 index1 = 1; in ClipLine()
225 index1 = 0; in ClipLine()
229 if (tmp[index1].fX <= clip.fLeft) { // wholly to the left in ClipLine()
254 if (tmp[index1].fX > clip.fRight) { in ClipLine()
258 r->set(clip.fRight, tmp[index1].fY); in ClipLine()
260 *r = tmp[index1]; in ClipLine()