Lines Matching defs:flags
55 bool GrShape::simplifyPath(unsigned flags) {
69 this->simplifyLine(pts[0], pts[1], flags);
72 this->simplifyRRect(rrect, dir, start, flags);
76 this->simplifyRRect(SkRRect::MakeOval(rect), dir, start * 2, flags);
78 } else if (SkPathPriv::IsSimpleRect(fPath, (flags & kSimpleFill_Flag), &rect, &dir, &start)) {
82 this->simplifyRect(rect, dir, start, flags);
84 } else if (flags & kIgnoreWinding_Flag) {
87 if (fPath.isRect(&rect, &closed) && (closed || (flags & kSimpleFill_Flag))) {
88 this->simplifyRect(rect, kDefaultDir, kDefaultStart, flags);
98 bool GrShape::simplifyArc(unsigned flags) {
105 if (flags & kSimpleFill_Flag) {
115 this->simplifyLine(center, start, flags);
117 this->simplifyPoint(start, flags);
126 if ((flags & kSimpleFill_Flag) || ((flags & kIgnoreWinding_Flag) && !fArc.fUseCenter)) {
130 kDefaultDir, kDefaultStart, flags);
135 if (flags & kMakeCanonical_Flag) {
152 unsigned flags) {
156 this->simplifyRect(rrect.rect(), dir, start, flags);
169 unsigned flags) {
171 if (flags & kSimpleFill_Flag) {
178 if (start >= 2 && !(flags & kIgnoreWinding_Flag)) {
182 this->simplifyLine(p1, p2, flags);
185 this->simplifyPoint({rect.fLeft, rect.fTop}, flags);
196 if (flags & kMakeCanonical_Flag) {
202 void GrShape::simplifyLine(const SkPoint& p1, const SkPoint& p2, unsigned flags) {
203 if (flags & kSimpleFill_Flag) {
216 if (flags & kMakeCanonical_Flag) {
227 void GrShape::simplifyPoint(const SkPoint& point, unsigned flags) {
228 if (flags & kSimpleFill_Flag) {
239 bool GrShape::simplify(unsigned flags) {
252 this->simplifyPoint(fPoint, flags);
255 this->simplifyLine(fLine.fP1, fLine.fP2, flags);
258 this->simplifyRect(fRect, this->dir(), this->startIndex(), flags);
262 this->simplifyRRect(fRRect, this->dir(), this->startIndex(), flags);
266 wasClosed = this->simplifyPath(flags);
269 wasClosed = this->simplifyArc(flags);
276 if (((flags & kIgnoreWinding_Flag) || (fType != Type::kRect && fType != Type::kRRect))) {