Lines Matching refs:clip

103                 // These ops can only shrink the current clip. So leaving
104 // the clip unchanged conservatively respects the contract.
110 // These ops can grow the current clip up to the extents of
111 // the input clip, which is inverse filled, so we just set
112 // the current clip to the device bounds.
125 // Difference can only shrink the current clip.
126 // Leaving clip unchanged conservatively fullfills the contract.
144 bool SkRasterClip::setPath(const SkPath& path, const SkRegion& clip, bool doAA) {
148 return this->setConservativeRect(path.getBounds(), clip.getBounds(), path.isInverseFillType());
152 (void)fBW.setPath(path, clip);
159 (void)fAA.setPath(path, &clip, doAA);
195 SkRasterClip clip(fForceConservativeRects);
196 clip.setPath(path, base, doAA);
197 return this->op(clip, op);
205 SkRasterClip clip(fForceConservativeRects);
206 clip.setPath(path, base, doAA);
207 return this->op(clip, op);
212 bool SkRasterClip::setPath(const SkPath& path, const SkIRect& clip, bool doAA) {
214 tmp.setRect(clip);
238 bool SkRasterClip::op(const SkRasterClip& clip, SkRegion::Op op) {
240 clip.validate();
242 if (this->isBW() && clip.isBW()) {
243 (void)fBW.op(clip.fBW, op);
251 if (clip.isBW()) {
252 tmp.setRegion(clip.bwRgn());
255 other = &clip.aaRgn();
393 SkAAClipBlitterWrapper::SkAAClipBlitterWrapper(const SkRasterClip& clip,
395 this->init(clip, blitter);
409 void SkAAClipBlitterWrapper::init(const SkRasterClip& clip, SkBlitter* blitter) {
411 if (clip.isBW()) {
412 fClipRgn = &clip.bwRgn();
415 const SkAAClip& aaclip = clip.aaRgn();