Lines Matching refs:edge

25 SkEdgeBuilder::Combine SkEdgeBuilder::CombineVertical(const SkEdge* edge, SkEdge* last) {  in CombineVertical()  argument
26 if (last->fCurveCount || last->fDX || edge->fX != last->fX) { in CombineVertical()
29 if (edge->fWinding == last->fWinding) { in CombineVertical()
30 if (edge->fLastY + 1 == last->fFirstY) { in CombineVertical()
31 last->fFirstY = edge->fFirstY; in CombineVertical()
34 if (edge->fFirstY == last->fLastY + 1) { in CombineVertical()
35 last->fLastY = edge->fLastY; in CombineVertical()
40 if (edge->fFirstY == last->fFirstY) { in CombineVertical()
41 if (edge->fLastY == last->fLastY) { in CombineVertical()
44 if (edge->fLastY < last->fLastY) { in CombineVertical()
45 last->fFirstY = edge->fLastY + 1; in CombineVertical()
49 last->fLastY = edge->fLastY; in CombineVertical()
50 last->fWinding = edge->fWinding; in CombineVertical()
53 if (edge->fLastY == last->fLastY) { in CombineVertical()
54 if (edge->fFirstY > last->fFirstY) { in CombineVertical()
55 last->fLastY = edge->fFirstY - 1; in CombineVertical()
59 last->fFirstY = edge->fFirstY; in CombineVertical()
60 last->fWinding = edge->fWinding; in CombineVertical()
66 static bool vertical_line(const SkEdge* edge) { in vertical_line() argument
67 return !edge->fDX && !edge->fCurveCount; in vertical_line()
71 SkEdge* edge = typedAllocThrow<SkEdge>(fAlloc); in addLine() local
72 if (edge->setLine(pts[0], pts[1], fShiftUp)) { in addLine()
73 if (vertical_line(edge) && fList.count()) { in addLine()
74 Combine combine = CombineVertical(edge, *(fList.end() - 1)); in addLine()
82 fList.push(edge); in addLine()
91 SkQuadraticEdge* edge = typedAllocThrow<SkQuadraticEdge>(fAlloc); in addQuad() local
92 if (edge->setQuadratic(pts, fShiftUp)) { in addQuad()
93 fList.push(edge); in addQuad()
100 SkCubicEdge* edge = typedAllocThrow<SkCubicEdge>(fAlloc); in addCubic() local
101 if (edge->setCubic(pts, fShiftUp)) { in addCubic()
102 fList.push(edge); in addCubic()
138 SkEdgeBuilder::Combine SkEdgeBuilder::checkVertical(const SkEdge* edge, SkEdge** edgePtr) { in checkVertical() argument
139 return !vertical_line(edge) || edgePtr <= fEdgeList ? kNo_Combine : in checkVertical()
140 CombineVertical(edge, edgePtr[-1]); in checkVertical()
161 SkEdge* edge = reinterpret_cast<SkEdge*>(storage); in buildPoly() local
182 if (edge->setLine(lines[i], lines[i + 1], shiftUp)) { in buildPoly()
183 Combine combine = checkVertical(edge, edgePtr); in buildPoly()
185 *edgePtr++ = edge++; in buildPoly()
207 if (edge->setLine(pts[0], pts[1], shiftUp)) { in buildPoly()
208 Combine combine = checkVertical(edge, edgePtr); in buildPoly()
210 *edgePtr++ = edge++; in buildPoly()
222 SkASSERT((char*)edge <= (char*)fEdgeList); in buildPoly()