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;
663 bool SkAAClip::setRect(const SkIRect& bounds) {
664 if (bounds.isEmpty()) {
672 r.set(bounds);
678 fBounds = bounds;
679 fRunHead = RunHead::AllocRect(bounds);
730 const SkIRect& bounds = rgn.getBounds();
731 const int offsetX = bounds.fLeft;
732 const int offsetY = bounds.fTop;
737 yArray.setReserve(SkMin32(bounds.height(), 1024));
738 xArray.setReserve(SkMin32(bounds.width() * 128, 64 * 1024));
747 SkASSERT(bounds.contains(r));
754 append_run(xArray, 0, bounds.width() - prevRight);
762 append_run(xArray, 0, bounds.width());
778 SkASSERT(prevRight <= bounds.width());
781 append_run(xArray, 0, bounds.width() - prevRight);
789 fBounds = bounds;
890 Builder(const SkIRect& bounds) : fBounds(bounds) {
892 fWidth = bounds.width();
894 fMinY = bounds.fTop;
1251 // we may have to trim the run to our bounds. If so, we assert that
1281 int fLeft; // cache of builder's bounds' left edge
1287 * scanlines at the (relative to the bounds it was given). This allows
1288 * the builder, during its finish, to trip its bounds down to the "real"
1397 RowIter(const uint8_t* row, const SkIRect& bounds) {
1399 fLeft = bounds.fLeft;
1400 fBoundsRight = bounds.fRight;
1402 fRight = bounds.fLeft + row[0];
1469 AlphaProc proc, const SkIRect& bounds) {
1475 int prevRite = bounds.fLeft;
1505 if (left >= bounds.fRight) {
1508 if (rite > bounds.fRight) {
1509 rite = bounds.fRight;
1512 if (left >= bounds.fLeft) {
1522 if (prevRite < bounds.fRight) {
1523 builder.addRun(prevRite, lastY, 0, bounds.fRight - prevRite);
1539 const SkIRect& bounds = builder.getBounds();
1580 if (top >= bounds.fBottom) {
1584 if (bot > bounds.fBottom) {
1585 bot = bounds.fBottom;
1590 builder.addRun(bounds.fLeft, bot - 1, 0, bounds.width());
1591 } else if (top >= bounds.fTop) {
1592 SkASSERT(bot <= bounds.fBottom);
1593 RowIter rowIterA(rowA, rowA ? A.getBounds() : bounds);
1594 RowIter rowIterB(rowB, rowB ? B.getBounds() : bounds);
1595 operatorX(builder, bot - 1, rowIterA, rowIterB, proc, bounds);
1622 SkIRect bounds;
1631 bounds = clipA->fBounds;
1635 if ((a_empty | b_empty) || !bounds.intersect(clipA->fBounds,
1649 bounds = clipA->fBounds;
1650 bounds.join(clipB->fBounds);
1658 SkASSERT(SkIRect::Intersects(bounds, clipB->fBounds));
1659 SkASSERT(SkIRect::Intersects(bounds, clipB->fBounds));
1661 Builder builder(bounds);
1669 * we first see if we can restrict the bounds of new rect to our current
1670 * bounds, or note that the new rect subsumes our current clip.
1691 r = &rStorage; // use the intersected bounds
1724 r = &rStorage; // use the intersected bounds