8#ifndef skgpu_graphite_geom_Geometry_DEFINED
9#define skgpu_graphite_geom_Geometry_DEFINED
28 enum class Type : uint8_t {
29 kEmpty,
kShape, kVertices, kSubRun, kEdgeAAQuad, kCoverageMaskShape, kAnalyticBlur
47 switch (geom.type()) {
80 switch (geom.
type()) {
const SkRect & bounds() const
const Rect & drawBounds() const
~CoverageMaskShape()=default
const SkVertices * vertices() const
Geometry(const AnalyticBlurMask &blur)
void setAnalyticBlur(const AnalyticBlurMask &blur)
Geometry(const CoverageMaskShape &mask)
Geometry(const Geometry &geom)
sk_sp< SkVertices > refVertices() const
Geometry(const EdgeAAQuad &edgeAAQuad)
Geometry(sk_sp< SkVertices > vertices)
const EdgeAAQuad & edgeAAQuad() const
void setEdgeAAQuad(const EdgeAAQuad &edgeAAQuad)
const CoverageMaskShape & coverageMaskShape() const
const Shape & shape() const
Geometry & operator=(const Geometry &geom)
bool isCoverageMaskShape() const
Geometry(const Shape &shape)
const AnalyticBlurMask & analyticBlurMask() const
const SubRunData & subRunData() const
void setVertices(sk_sp< SkVertices > vertices)
bool isAnalyticBlur() const
AnalyticBlurMask fAnalyticBlurMask
void setShape(const Shape &shape)
Geometry(const SubRunData &subrun)
Geometry(Geometry &&geom)
void setSubRun(const SubRunData &subRun)
void setCoverageMaskShape(const CoverageMaskShape &maskShape)
Geometry & operator=(Geometry &&geom)
CoverageMaskShape fCoverageMaskShape
bool isEdgeAAQuad() const
sk_sp< SkVertices > fVertices