8#ifndef GrStyledShape_DEFINED
9#define GrStyledShape_DEFINED
81 : fShape(path), fStyle(
style) {
105 : fShape(rect), fStyle(
style) {
211 return !fShape.
isPath() ||
232 if (this->
style().hasNonDashPathEffect()) {
304 void simplifyStroke();
307 const SkPath* originalPathForListeners()
const;
313 bool fClosed =
false;
314 bool fSimplified =
false;
static bool apply(Pass *pass, SkRecord *record)
uint32_t segmentMask() const
void setPathWindingParams(SkPathDirection dir, unsigned start)
void setInverted(bool inverted)
void asPath(SkPath *out, bool simpleFill=true) const
bool convex(bool simpleFill=true) const
bool isSimpleFill() const
bool knownToBeClosed() const
void asPath(SkPath *out) const
void writeUnstyledKey(uint32_t *key) const
GrStyledShape(const SkPath &path, const SkPaint &paint, DoSimplify doSimplify=DoSimplify::kYes)
int unstyledKeySize() const
bool asLine(SkPoint pts[2], bool *inverted) const
GrStyledShape(const SkRect &rect, const GrStyle &style, DoSimplify doSimplify=DoSimplify::kYes)
GrStyledShape(const SkRRect &rrect, const SkPaint &paint, DoSimplify doSimplify=DoSimplify::kYes)
GrStyledShape(const SkRect &rect, const SkPaint &paint, DoSimplify doSimplify=DoSimplify::kYes)
GrStyledShape(const SkRRect &rrect, SkPathDirection dir, unsigned start, bool inverted, const GrStyle &style, DoSimplify doSimplify=DoSimplify::kYes)
bool knownDirection() const
bool knownToBeConvex() const
bool hasUnstyledKey() const
bool inverseFilled() const
const GrStyle & style() const
GrStyledShape(const SkPath &path, DoSimplify doSimplify=DoSimplify::kYes)
GrStyledShape(const SkRRect &rrect, DoSimplify doSimplify=DoSimplify::kYes)
static GrStyledShape MakeArc(const SkRect &oval, SkScalar startAngleDegrees, SkScalar sweepAngleDegrees, bool useCenter, const GrStyle &style, DoSimplify=DoSimplify::kYes)
GrStyledShape(const SkPath &path, const GrStyle &style, DoSimplify doSimplify=DoSimplify::kYes)
SkRect styledBounds() const
bool asNestedRects(SkRect rects[2]) const
void addGenIDChangeListener(sk_sp< SkIDChangeListener >) const
GrStyledShape(const SkRRect &rrect, const GrStyle &style, DoSimplify doSimplify=DoSimplify::kYes)
bool mayBeInverseFilledAfterStyling() const
bool testingOnly_isPath() const
bool testingOnly_isNonVolatilePath() const
uint32_t segmentMask() const
static constexpr int kMaxKeyFromDataVerbCnt
uint32_t testingOnly_getOriginalGenerationID() const
static GrStyledShape MakeFilled(const GrStyledShape &original, FillInversion=FillInversion::kPreserve)
GrStyledShape applyStyle(GrStyle::Apply apply, SkScalar scale) const
GrStyledShape & operator=(const GrStyledShape &that)
bool asRRect(SkRRect *rrect, SkPathDirection *dir, unsigned *start, bool *inverted) const
GrStyledShape(const SkRect &rect, DoSimplify doSimplify=DoSimplify::kYes)
static SkPathFirstDirection ComputeFirstDirection(const SkPath &)
bool isInverseFillType() const