Lines Matching refs:rect

58     SkRect rect;
74 } else if (SkPathPriv::IsOval(fPath, &rect, &dir, &start)) {
76 this->simplifyRRect(SkRRect::MakeOval(rect), dir, start * 2, flags);
78 } else if (SkPathPriv::IsSimpleRect(fPath, (flags & kSimpleFill_Flag), &rect, &dir, &start)) {
79 // When there is a path effect we restrict rect detection to the narrower API that
82 this->simplifyRect(rect, dir, start, flags);
87 if (fPath.isRect(&rect, &closed) && (closed || (flags & kSimpleFill_Flag))) {
88 this->simplifyRect(rect, kDefaultDir, kDefaultStart, flags);
154 // Change index from rrect to rect
156 this->simplifyRect(rrect.rect(), dir, start, flags);
161 // A round rect is already canonical, so there's nothing more to do
163 // If starting as a round rect, the provided rrect/winding params should be already set
168 void GrShape::simplifyRect(const SkRect& rect, SkPathDirection dir, unsigned start,
170 if (!rect.width() || !rect.height()) {
174 } else if (!rect.width() ^ !rect.height()) {
176 SkPoint p1 = {rect.fLeft, rect.fTop};
177 SkPoint p2 = {rect.fRight, rect.fBottom};
185 this->simplifyPoint({rect.fLeft, rect.fTop}, flags);
190 fRect = rect;
193 // If starting as a rect, the provided rect/winding params should already be set
194 SkASSERT(fRect == rect && this->dir() == dir && this->startIndex() == start);
284 bool GrShape::conservativeContains(const SkRect& rect) const {
288 case Type::kLine: // fall through, "" (currently choosing not to test if 'rect' == line)
291 return fRect.contains(rect);
293 return fRRect.contains(rect);
295 return fPath.conservativelyContainsRect(rect);
300 return arc.conservativelyContainsRect(rect);