Lines Matching refs:rect

64         // closing an open rect that wasn't closed in the original shape because it had
185 // Dir and start are only used for rect and rrect shapes, so are not included in other
215 memcpy(key, &fShape.rect(), sizeof(SkRect));
335 // stroke of a rect).
436 // If the shape is a regular rect, map to round rect winding parameters, including accounting
440 *rrect = SkRRect::MakeRect(fShape.rect());
451 // In SkPath a rect starts at index 0 by default. This is the top left corner. However,
453 // rect edges. Thus, we may need to modify the rrect's start index and direction.
457 if (fShape.rect().fLeft > fShape.rect().fRight) {
464 if (fShape.rect().fTop > fShape.rect().fBottom) {
468 // rect (matching what we'd expect for a rect with both X and Y flipped).
478 // Convert to round rect indexing
633 // For stroke+filled rects, a mitered shape becomes a larger rect and a rounded shape
634 // becomes a round rect.
640 // Bevel-stroked rect needs path rendering
645 fShape.rect().outset(r, r);
649 fShape.setRRect(SkRRect::MakeRectXY(fShape.rect(), r, r));
755 SkRect rect;
758 rect.fLeft = std::min(fShape.line().fP1.fX, fShape.line().fP2.fX);
759 rect.fRight = std::max(fShape.line().fP1.fX, fShape.line().fP2.fX);
760 rect.fTop = rect.fBottom = fShape.line().fP1.fY;
764 rect.fTop = std::min(fShape.line().fP1.fY, fShape.line().fP2.fY);
765 rect.fBottom = std::max(fShape.line().fP1.fY, fShape.line().fP2.fY);
766 rect.fLeft = rect.fRight = fShape.line().fP1.fX;
775 rect.outset(outset.fX, outset.fY);
776 if (rect.isEmpty()) {
780 fShape.setRRect(SkRRect::MakeRectXY(rect, outset.fX, outset.fY));
782 fShape.setRect(rect);