Lines Matching refs:clip
34 int SkEdge::setLine(const SkPoint& p0, const SkPoint& p1, const SkIRect* clip,
61 // are we completely above or below the clip?
62 if (NULL != clip && (top >= clip->fBottom || bot <= clip->fTop)) {
77 if (clip) {
78 this->chopLineWithClip(*clip);
118 void SkEdge::chopLineWithClip(const SkIRect& clip)
122 SkASSERT(top < clip.fBottom);
124 // clip the line to the top
125 if (top < clip.fTop)
127 SkASSERT(fLastY >= clip.fTop);
128 fX += fDX * (clip.fTop - top);
129 fFirstY = clip.fTop;
319 int SkCubicEdge::setCubic(const SkPoint pts[4], const SkIRect* clip, int shift)
352 // are we completely above or below the clip?
353 if (clip && (top >= clip->fBottom || bot <= clip->fTop))
409 if (clip)
415 } while (!this->intersectsClip(*clip));
416 this->chopLineWithClip(*clip);