Lines Matching refs:bounds
51 SkIRect bounds = rect.roundOut();
52 SkASSERT(bounds.width() >= 3 && bounds.height() >= 3);
54 int runSize = bounds.width() + 1; // +1 so we can set runs[bounds.width()] = 0
60 runs[1] = bounds.width() - 2;
61 runs[bounds.width() - 1] = 1;
62 runs[bounds.width()] = 0;
64 SkScalar partialL = bounds.fLeft + 1 - rect.fLeft;
65 SkScalar partialR = rect.fRight - (bounds.fRight - 1);
66 SkScalar partialT = bounds.fTop + 1 - rect.fTop;
67 SkScalar partialB = rect.fBottom - (bounds.fBottom - 1);
71 alphas[bounds.width() - 1] = ScalarToAlpha(partialR * partialT);
72 this->blitAntiH(bounds.fLeft, bounds.fTop, alphas, runs);
74 this->blitAntiRect(bounds.fLeft, bounds.fTop + 1, bounds.width() - 2, bounds.height() - 2,
79 alphas[bounds.width() - 1] = ScalarToAlpha(partialR * partialB);
80 this->blitAntiH(bounds.fLeft, bounds.fBottom - 1, alphas, runs);
547 SkDEBUGCODE(const SkIRect& bounds = fRgn->getBounds();)
553 SkASSERT(left >= bounds.fLeft && right <= bounds.fRight);
582 SkIRect bounds;
583 bounds.set(x, y, x + 1, y + height);
585 SkRegion::Cliperator iter(*fRgn, bounds);
589 SkASSERT(bounds.contains(r));
597 SkIRect bounds;
598 bounds.set(x, y, x + width, y + height);
600 SkRegion::Cliperator iter(*fRgn, bounds);
604 SkASSERT(bounds.contains(r));
614 SkIRect bounds;
615 bounds.set(x, y, x + width + 2, y + height);
617 SkRegion::Cliperator iter(*fRgn, bounds);
621 SkASSERT(bounds.contains(r));