Home | History | Annotate | Download | only in core

Lines Matching full:bounds

96     static RunHead* AllocRect(const SkIRect& bounds) {
97 SkASSERT(!bounds.isEmpty());
98 int width = bounds.width();
102 yoff->fY = bounds.height() - 1;
665 bool SkAAClip::setRect(const SkIRect& bounds) {
666 if (bounds.isEmpty()) {
674 r.set(bounds);
680 fBounds = bounds;
681 fRunHead = RunHead::AllocRect(bounds);
732 const SkIRect& bounds = rgn.getBounds();
733 const int offsetX = bounds.fLeft;
734 const int offsetY = bounds.fTop;
739 yArray.setReserve(SkMin32(bounds.height(), 1024));
740 xArray.setReserve(SkMin32(bounds.width() * 128, 64 * 1024));
749 SkASSERT(bounds.contains(r));
756 append_run(xArray, 0, bounds.width() - prevRight);
764 append_run(xArray, 0, bounds.width());
780 SkASSERT(prevRight <= bounds.width());
783 append_run(xArray, 0, bounds.width() - prevRight);
791 fBounds = bounds;
892 Builder(const SkIRect& bounds) : fBounds(bounds) {
894 fWidth = bounds.width();
896 fMinY = bounds.fTop;
1253 // we may have to trim the run to our bounds. If so, we assert that
1283 int fLeft; // cache of builder's bounds' left edge
1289 * scanlines at the (relative to the bounds it was given). This allows
1290 * the builder, during its finish, to trip its bounds down to the "real"
1388 RowIter(const uint8_t* row, const SkIRect& bounds) {
1390 fLeft = bounds.fLeft;
1391 fBoundsRight = bounds.fRight;
1393 fRight = bounds.fLeft + row[0];
1460 AlphaProc proc, const SkIRect& bounds) {
1466 int prevRite = bounds.fLeft;
1496 if (left >= bounds.fRight) {
1499 if (rite > bounds.fRight) {
1500 rite = bounds.fRight;
1503 if (left >= bounds.fLeft) {
1513 if (prevRite < bounds.fRight) {
1514 builder.addRun(prevRite, lastY, 0, bounds.fRight - prevRite);
1530 const SkIRect& bounds = builder.getBounds();
1571 if (top >= bounds.fBottom) {
1575 if (bot > bounds.fBottom) {
1576 bot = bounds.fBottom;
1581 builder.addRun(bounds.fLeft, bot - 1, 0, bounds.width());
1582 } else if (top >= bounds.fTop) {
1583 SkASSERT(bot <= bounds.fBottom);
1584 RowIter rowIterA(rowA, rowA ? A.getBounds() : bounds);
1585 RowIter rowIterB(rowB, rowB ? B.getBounds() : bounds);
1586 operatorX(builder, bot - 1, rowIterA, rowIterB, proc, bounds);
1613 SkIRect bounds;
1622 bounds = clipA->fBounds;
1626 if ((a_empty | b_empty) || !bounds.intersect(clipA->fBounds,
1640 bounds = clipA->fBounds;
1641 bounds.join(clipB->fBounds);
1649 SkASSERT(SkIRect::Intersects(bounds, clipB->fBounds));
1650 SkASSERT(SkIRect::Intersects(bounds, clipB->fBounds));
1652 Builder builder(bounds);
1660 * we first see if we can restrict the bounds of new rect to our current
1661 * bounds, or note that the new rect subsumes our current clip.
1682 r = &rStorage; // use the intersected bounds
1715 r = &rStorage; // use the intersected bounds