18 switch (shape.
type()) {
42 fStart = shape.fStart;
44 fInverted = shape.fInverted;
52 : (fInverted ? 1 : 0);
53 key |= ((uint32_t) fType) << 2;
55 key |= (fCW ? 1 : 0) << 8;
59bool GrShape::simplifyPath(
unsigned flags) {
73 this->simplifyLine(pts[0], pts[1],
flags);
102bool GrShape::simplifyArc(
unsigned flags) {
187 this->simplifyLine(p1, p2,
flags);
210 }
else if (p1 == p2) {
211 this->simplifyPoint(p1,
false);
232void GrShape::simplifyPoint(
const SkPoint& point,
unsigned flags) {
251 bool wasClosed =
false;
271 wasClosed = this->simplifyPath(
flags);
274 wasClosed = this->simplifyArc(
flags);
290 switch (this->
type()) {
305 return arc.conservativelyContainsRect(
rect);
314 switch (this->
type()) {
331 switch (this->
type()) {
349 switch (this->
type()) {
371 switch (this->
type()) {
396 switch (this->
type()) {
431 out->toggleInverseFillType();
435 switch (this->
type()) {
458 out->toggleInverseFillType();
void swap(sk_sp< T > &a, sk_sp< T > &b)
#define SkDegreesToRadians(degrees)
#define SkScalarMod(x, y)
#define SkScalarSin(radians)
#define SkScalarCos(radians)
static SkScalar center(float pos0, float pos1)
GrShape & operator=(const GrShape &shape)
uint32_t stateKey() const
void setRRect(const SkRRect &rrect)
uint32_t segmentMask() const
void setPath(const SkPath &path)
void setLine(const GrLineSegment &line)
void setPathWindingParams(SkPathDirection dir, unsigned start)
SkPathDirection dir() const
static constexpr SkPathDirection kDefaultDir
static constexpr SkPathFillType kDefaultFillType
void setArc(const SkArc &arc)
bool conservativeContains(const SkRect &rect) const
unsigned startIndex() const
static constexpr unsigned kDefaultStart
void asPath(SkPath *out, bool simpleFill=true) const
void setPoint(const SkPoint &point)
bool convex(bool simpleFill=true) const
void setRect(const SkRect &rect)
bool simplify(unsigned flags=kAll_Flags)
static bool IsClosedSingleContour(const SkPath &path)
static bool IsRRect(const SkPath &path, SkRRect *rrect, SkPathDirection *dir, unsigned *start)
static bool IsSimpleRect(const SkPath &path, bool isSimpleFill, SkRect *rect, SkPathDirection *direction, unsigned *start)
static bool IsOval(const SkPath &path, SkRect *rect, SkPathDirection *dir, unsigned *start)
static void CreateDrawArcPath(SkPath *path, const SkArc &arc, bool isFillNoPathEffect)
static bool DrawArcIsConvex(SkScalar sweepAngle, SkArc::Type arcType, bool isFillNoPathEffect)
bool conservativelyContainsRect(const SkRect &rect) const
SkPath & moveTo(SkScalar x, SkScalar y)
bool isLine(SkPoint line[2]) const
SkPathFillType getFillType() const
SkPath & addRRect(const SkRRect &rrect, SkPathDirection dir=SkPathDirection::kCW)
const SkRect & getBounds() const
uint32_t getSegmentMasks() const
bool isLastContourClosed() const
bool isRect(SkRect *rect, bool *isClosed=nullptr, SkPathDirection *direction=nullptr) const
bool contains(SkScalar x, SkScalar y) const
static bool ContainsPoint(const SkRRect &rr, const SkPoint &p)
const SkRect & rect() const
static SkRRect MakeOval(const SkRect &oval)
bool contains(const SkRect &rect) const
const SkRect & getBounds() const
FlutterSemanticsFlag flags
sk_sp< SkBlender > blender SkRect rect
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace Enable an endless trace buffer The default is a ring buffer This is useful when very old events need to viewed For during application launch Memory usage will continue to grow indefinitely however Start app with an specific route defined on the framework flutter assets dir
SkRect makeSorted() const
SkScalar fBottom
larger y-axis bounds
SkScalar fLeft
smaller x-axis bounds
SkScalar fRight
larger x-axis bounds
bool contains(SkScalar x, SkScalar y) const
constexpr float centerX() const
constexpr float height() const
constexpr float centerY() const
constexpr float width() const
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)
SkScalar fTop
smaller y-axis bounds