Lines Matching defs:clip
36 int SkEdge::setLine(const SkPoint& p0, const SkPoint& p1, const SkIRect* clip,
71 // are we completely above or below the clip?
72 if (clip && (top >= clip->fBottom || bot <= clip->fTop)) {
87 if (clip) {
88 this->chopLineWithClip(*clip);
128 void SkEdge::chopLineWithClip(const SkIRect& clip)
132 SkASSERT(top < clip.fBottom);
134 // clip the line to the top
135 if (top < clip.fTop)
137 SkASSERT(fLastY >= clip.fTop);
138 fX += fDX * (clip.fTop - top);
139 fFirstY = clip.fTop;