Lines Matching refs:index0
110 int index0, index1; in IntersectLine() local
113 index0 = 0; in IntersectLine()
116 index0 = 1; in IntersectLine()
124 if (tmp[index0].fY < clip.fTop) { in IntersectLine()
125 tmp[index0].set(sect_with_horizontal(src, clip.fTop), clip.fTop); in IntersectLine()
132 index0 = 0; in IntersectLine()
135 index0 = 1; in IntersectLine()
140 if ((tmp[index1].fX <= clip.fLeft || tmp[index0].fX >= clip.fRight)) { in IntersectLine()
148 if (tmp[index0].fX < clip.fLeft) { in IntersectLine()
149 tmp[index0].set(clip.fLeft, sect_with_vertical(src, clip.fLeft)); in IntersectLine()
177 int index0, index1; in ClipLine() local
180 index0 = 0; in ClipLine()
183 index0 = 1; in ClipLine()
192 if (pts[index0].fY >= clip.fBottom) { // we're below the clip in ClipLine()
202 if (pts[index0].fY < clip.fTop) { in ClipLine()
203 tmp[index0].set(sect_with_horizontal(pts, clip.fTop), clip.fTop); in ClipLine()
204 SkASSERT(is_between_unsorted(tmp[index0].fX, pts[0].fX, pts[1].fX)); in ClipLine()
220 index0 = 0; in ClipLine()
224 index0 = 1; in ClipLine()
233 } else if (tmp[index0].fX >= clip.fRight) { // wholly to the right in ClipLine()
244 if (tmp[index0].fX < clip.fLeft) { in ClipLine()
245 r->set(clip.fLeft, tmp[index0].fY); in ClipLine()
250 *r = tmp[index0]; in ClipLine()