53 enum class Type : uint8_t {
54 kEmpty, kPoint, kRect,
kRRect, kPath, kArc, kLine
116 fStart =
static_cast<uint8_t
>(
start);
223 bool convex(
bool simpleFill =
true)
const;
255 bool simplifyPath(
unsigned flags);
256 bool simplifyArc(
unsigned flags);
static constexpr bool SkToBool(const T &x)
GrShape & operator=(const GrShape &shape)
const SkRect & rect() const
uint32_t stateKey() const
void setRRect(const SkRRect &rrect)
uint32_t segmentMask() const
std::true_type sk_is_trivially_relocatable
GrShape(const SkPath &path)
static constexpr int kTypeCount
GrShape(const SkPoint &point)
void setPath(const SkPath &path)
const GrLineSegment & line() const
void setLine(const GrLineSegment &line)
GrShape(const SkRRect &rrect)
void setPathWindingParams(SkPathDirection dir, unsigned start)
SkPathDirection dir() const
static constexpr SkPathDirection kDefaultDir
static constexpr SkPathFillType kDefaultFillType
void setInverted(bool inverted)
void setArc(const SkArc &arc)
const SkPath & path() const
bool conservativeContains(const SkRect &rect) const
unsigned startIndex() const
const SkPoint & point() const
const SkArc & arc() const
static constexpr unsigned kDefaultStart
const SkRRect & rrect() const
void asPath(SkPath *out, bool simpleFill=true) const
GrShape(const SkRect &rect)
void setPoint(const SkPoint &point)
GrShape(const SkArc &arc)
GrShape(const GrLineSegment &line)
GrShape(const GrShape &shape)
bool convex(bool simpleFill=true) const
void setRect(const SkRect &rect)
bool simplify(unsigned flags=kAll_Flags)
bool isInverseFillType() const
void toggleInverseFillType()
FlutterSemanticsFlag flags