Home | History | Annotate | Download | only in tests

Lines Matching defs:line

16     SkDLine line;
30 const SkDLine& line = failLineCubicTests[iIndex].line;
31 SkASSERT(ValidLine(line));
35 int order2 = reduce2.reduce(line);
41 SkDebugf("[%d] line order=%d\n", iIndex, order2);
46 int roots = i.intersect(cubic, line);
99 static int doIntersect(SkIntersections& intersections, const SkDCubic& cubic, const SkDLine& line) {
102 if (line[0].fX == line[1].fX) {
103 double top = line[0].fY;
104 double bottom = line[1].fY;
109 result = intersections.vertical(cubic, top, bottom, line[0].fX, flipped);
110 } else if (line[0].fY == line[1].fY) {
111 double left = line[0].fX;
112 double right = line[1].fX;
117 result = intersections.horizontal(cubic, left, right, line[0].fY, flipped);
119 intersections.intersect(cubic, line);
128 const SkDLine& line = lineCubicTests[iIndex].line;
129 SkASSERT(ValidLine(line));
133 int order2 = reduce2.reduce(line);
139 SkDebugf("[%d] line order=%d\n", iIndex, order2);
144 int roots = doIntersect(i, cubic, line);
149 SkDPoint xy2 = line.ptAtT(tt2);
160 double left[3] = { line.isLeft(prev), line.isLeft(sect), line.isLeft(cubic[3]) };
164 SkDPoint prevL = line.ptAtT(i[1][0] - 0.0000007);
166 SkDPoint nextL = line.ptAtT(i[1][0] + 0.0000007);
194 const SkDLine& line = lineCubicTests[iIndex].line;
196 i.intersect(cubic, line);