Lines Matching full:clip
309 void blitMask(const SkMask& mask, const SkIRect& clip) override {
315 SkASSERT(mask.fBounds.contains(clip));
317 // Start from largest block boundary less than the clip boundaries.
318 const int startI = BlockDim * (clip.left() / BlockDim);
319 const int startJ = BlockDim * (clip.top() / BlockDim);
321 for (int j = startJ; j < clip.bottom(); j += BlockDim) {
325 for (int i = startI; i < clip.right(); i += BlockDim) {
327 // At this point, the block should intersect the clip.
329 SkIRect::MakeXYWH(i, j, BlockDim, BlockDim), clip));
332 if (i < clip.left() || j < clip.top() ||
333 i + BlockDim > clip.right() || j + BlockDim > clip.bottom()) {
338 const int startX = SkMax32(i, clip.left());
339 const int startY = SkMax32(j, clip.top());
341 const int endX = SkMin32(i + BlockDim, clip.right());
342 const int endY = SkMin32(j + BlockDim, clip.bottom());