Lines Matching refs:kBaseRect
1577 // kBaseRect is used to construct most our test paths: a rect, a circle, and a round-rect.
1578 static const SkRect kBaseRect = SkRect::MakeWH(SkIntToScalar(100), SkIntToScalar(100));
1580 // A circle that bounds kBaseRect (with a significant amount of slop)
1581 SkScalar circleR = SkMaxScalar(kBaseRect.width(), kBaseRect.height());
1583 static const SkPoint kCircleC = {kBaseRect.centerX(), kBaseRect.centerY()};
1595 {kBaseRect, true, true, false, false},
1597 // rect well inside of kBaseRect
1598 {SkRect::MakeLTRB(kBaseRect.fLeft + 0.25f*kBaseRect.width(),
1599 kBaseRect.fTop + 0.25f*kBaseRect.height(),
1600 kBaseRect.fRight - 0.25f*kBaseRect.width(),
1601 kBaseRect.fBottom - 0.25f*kBaseRect.height()),
1604 // rects with edges off by one from kBaseRect's edges
1605 {SkRect::MakeXYWH(kBaseRect.fLeft, kBaseRect.fTop,
1606 kBaseRect.width(), kBaseRect.height() + 1),
1608 {SkRect::MakeXYWH(kBaseRect.fLeft, kBaseRect.fTop,
1609 kBaseRect.width() + 1, kBaseRect.height()),
1611 {SkRect::MakeXYWH(kBaseRect.fLeft, kBaseRect.fTop,
1612 kBaseRect.width() + 1, kBaseRect.height() + 1),
1614 {SkRect::MakeXYWH(kBaseRect.fLeft - 1, kBaseRect.fTop,
1615 kBaseRect.width(), kBaseRect.height()),
1617 {SkRect::MakeXYWH(kBaseRect.fLeft, kBaseRect.fTop - 1,
1618 kBaseRect.width(), kBaseRect.height()),
1620 {SkRect::MakeXYWH(kBaseRect.fLeft - 1, kBaseRect.fTop,
1621 kBaseRect.width() + 2, kBaseRect.height()),
1623 {SkRect::MakeXYWH(kBaseRect.fLeft, kBaseRect.fTop - 1,
1624 kBaseRect.width() + 2, kBaseRect.height()),
1627 // zero-w/h rects at each corner of kBaseRect
1628 {SkRect::MakeXYWH(kBaseRect.fLeft, kBaseRect.fTop, 0, 0), true, true, false, false},
1629 {SkRect::MakeXYWH(kBaseRect.fRight, kBaseRect.fTop, 0, 0), true, true, false, true},
1630 {SkRect::MakeXYWH(kBaseRect.fLeft, kBaseRect.fBottom, 0, 0), true, true, false, true},
1631 {SkRect::MakeXYWH(kBaseRect.fRight, kBaseRect.fBottom, 0, 0), true, true, false, true},
1634 {SkRect::MakeXYWH(10 * kBaseRect.fRight, 10 * kBaseRect.fBottom,
1638 // very large rect containing kBaseRect
1639 {SkRect::MakeXYWH(kBaseRect.fLeft - 5 * kBaseRect.width(),
1640 kBaseRect.fTop - 5 * kBaseRect.height(),
1641 11 * kBaseRect.width(), 11 * kBaseRect.height()),
1644 // skinny rect that spans same y-range as kBaseRect
1645 {SkRect::MakeXYWH(kBaseRect.centerX(), kBaseRect.fTop,
1646 SkIntToScalar(1), kBaseRect.height()),
1649 // short rect that spans same x-range as kBaseRect
1650 {SkRect::MakeXYWH(kBaseRect.fLeft, kBaseRect.centerY(), kBaseRect.width(), SkScalar(1)),
1653 // skinny rect that spans slightly larger y-range than kBaseRect
1654 {SkRect::MakeXYWH(kBaseRect.centerX(), kBaseRect.fTop,
1655 SkIntToScalar(1), kBaseRect.height() + 1),
1658 // short rect that spans slightly larger x-range than kBaseRect
1659 {SkRect::MakeXYWH(kBaseRect.fLeft, kBaseRect.centerY(),
1660 kBaseRect.width() + 1, SkScalar(1)),
1676 path.addRect(kBaseRect, dir);
1686 path.addRoundRect(kBaseRect, kRRRadii[0], kRRRadii[1], dir);
1691 path.moveTo(kBaseRect.fLeft + kRRRadii[0], kBaseRect.fTop);
1692 path.cubicTo(kBaseRect.fLeft + kRRRadii[0] / 2, kBaseRect.fTop,
1693 kBaseRect.fLeft, kBaseRect.fTop + kRRRadii[1] / 2,
1694 kBaseRect.fLeft, kBaseRect.fTop + kRRRadii[1]);
1695 path.lineTo(kBaseRect.fLeft, kBaseRect.fBottom);
1696 path.lineTo(kBaseRect.fRight, kBaseRect.fBottom);
1697 path.lineTo(kBaseRect.fRight, kBaseRect.fTop);