Home | History | Annotate | Download | only in core

Lines Matching refs:bounds

94     static RunHead* AllocRect(const SkIRect& bounds) {
95 SkASSERT(!bounds.isEmpty());
96 int width = bounds.width();
100 yoff->fY = bounds.height() - 1;
649 bool SkAAClip::setRect(const SkIRect& bounds) {
650 if (bounds.isEmpty()) {
658 r.set(bounds);
664 fBounds = bounds;
665 fRunHead = RunHead::AllocRect(bounds);
716 const SkIRect& bounds = rgn.getBounds();
717 const int offsetX = bounds.fLeft;
718 const int offsetY = bounds.fTop;
723 yArray.setReserve(SkMin32(bounds.height(), 1024));
724 xArray.setReserve(SkMin32(bounds.width() * 128, 64 * 1024));
733 SkASSERT(bounds.contains(r));
740 append_run(xArray, 0, bounds.width() - prevRight);
748 append_run(xArray, 0, bounds.width());
764 SkASSERT(prevRight <= bounds.width());
767 append_run(xArray, 0, bounds.width() - prevRight);
775 fBounds = bounds;
874 Builder(const SkIRect& bounds) : fBounds(bounds) {
876 fWidth = bounds.width();
878 fMinY = bounds.fTop;
1232 // we may have to trim the run to our bounds. If so, we assert that
1262 int fLeft; // cache of builder's bounds' left edge
1268 * scanlines at the (relative to the bounds it was given). This allows
1269 * the builder, during its finish, to trip its bounds down to the "real"
1384 RowIter(const uint8_t* row, const SkIRect& bounds) {
1386 fLeft = bounds.fLeft;
1387 fBoundsRight = bounds.fRight;
1389 fRight = bounds.fLeft + row[0];
1454 AlphaProc proc, const SkIRect& bounds) {
1460 int prevRite = bounds.fLeft;
1490 if (left >= bounds.fRight) {
1493 if (rite > bounds.fRight) {
1494 rite = bounds.fRight;
1497 if (left >= bounds.fLeft) {
1507 if (prevRite < bounds.fRight) {
1508 builder.addRun(prevRite, lastY, 0, bounds.fRight - prevRite);
1524 const SkIRect& bounds = builder.getBounds();
1565 if (top >= bounds.fBottom) {
1569 if (bot > bounds.fBottom) {
1570 bot = bounds.fBottom;
1575 builder.addRun(bounds.fLeft, bot - 1, 0, bounds.width());
1576 } else if (top >= bounds.fTop) {
1577 SkASSERT(bot <= bounds.fBottom);
1578 RowIter rowIterA(rowA, rowA ? A.getBounds() : bounds);
1579 RowIter rowIterB(rowB, rowB ? B.getBounds() : bounds);
1580 operatorX(builder, bot - 1, rowIterA, rowIterB, proc, bounds);
1607 SkIRect bounds;
1616 bounds = clipA->fBounds;
1620 if ((a_empty | b_empty) || !bounds.intersect(clipA->fBounds,
1634 bounds = clipA->fBounds;
1635 bounds.join(clipB->fBounds);
1643 SkASSERT(SkIRect::Intersects(bounds, clipB->fBounds));
1644 SkASSERT(SkIRect::Intersects(bounds, clipB->fBounds));
1646 Builder builder(bounds);
1654 * we first see if we can restrict the bounds of new rect to our current
1655 * bounds, or note that the new rect subsumes our current clip.
1676 r = &rStorage; // use the intersected bounds
1705 r = &rStorage; // use the intersected bounds