Flutter Engine
The Flutter Engine
|
#include <StrokeTessellateOp.h>
Public Member Functions | |
StrokeTessellateOp (GrAAType, const SkMatrix &, const SkPath &, const SkStrokeRec &, GrPaint &&) | |
Public Member Functions inherited from GrDrawOp | |
GrDrawOp (uint32_t classID) | |
virtual ClipResult | clipToShape (skgpu::ganesh::SurfaceDrawContext *, SkClipOp, const SkMatrix &, const GrShape &, GrAA) |
Public Member Functions inherited from GrOp | |
virtual | ~GrOp ()=default |
CombineResult | combineIfPossible (GrOp *that, SkArenaAlloc *alloc, const GrCaps &caps) |
const SkRect & | bounds () const |
void | setClippedBounds (const SkRect &clippedBounds) |
bool | hasAABloat () const |
bool | hasZeroArea () const |
void | operator delete (void *p) |
template<typename T > | |
const T & | cast () const |
template<typename T > | |
T * | cast () |
uint32_t | classID () const |
uint32_t | uniqueID () const |
void | prePrepare (GrRecordingContext *context, const GrSurfaceProxyView &dstView, GrAppliedClip *clip, const GrDstProxyView &dstProxyView, GrXferBarrierFlags renderPassXferBarriers, GrLoadOp colorLoadOp) |
void | prepare (GrOpFlushState *state) |
void | execute (GrOpFlushState *state, const SkRect &chainBounds) |
void | chainConcat (GrOp::Owner) |
bool | isChainHead () const |
bool | isChainTail () const |
GrOp * | nextInChain () const |
GrOp * | prevInChain () const |
GrOp::Owner | cutChain () |
void | setBounds (const SkRect &newBounds, HasAABloat aabloat, IsHairline zeroArea) |
void | setTransformedBounds (const SkRect &srcBounds, const SkMatrix &m, HasAABloat aabloat, IsHairline zeroArea) |
void | makeFullScreen (GrSurfaceProxy *proxy) |
Private Member Functions | |
const char * | name () const override |
void | visitProxies (const GrVisitProxyFunc &) const override |
bool | usesMSAA () const override |
GrProcessorSet::Analysis | finalize (const GrCaps &, const GrAppliedClip *, GrClampType) override |
bool | usesStencil () const override |
CombineResult | onCombineIfPossible (GrOp *, SkArenaAlloc *, const GrCaps &) override |
void | onPrePrepare (GrRecordingContext *, const GrSurfaceProxyView &, GrAppliedClip *, const GrDstProxyView &, GrXferBarrierFlags, GrLoadOp colorLoadOp) override |
void | onPrepare (GrOpFlushState *) override |
void | onExecute (GrOpFlushState *, const SkRect &chainBounds) override |
Additional Inherited Members | |
Public Types inherited from GrDrawOp | |
enum class | ClipResult { kFail , kClippedGeometrically , kClippedInShader , kClippedOut } |
Public Types inherited from GrOp | |
enum class | CombineResult { kMerged , kMayChain , kCannotCombine } |
enum class | HasAABloat : bool { kNo = false , kYes = true } |
enum class | IsHairline : bool { kNo = false , kYes = true } |
using | Owner = std::unique_ptr< GrOp > |
Static Public Member Functions inherited from GrOp | |
template<typename Op , typename... Args> | |
static Owner | Make (GrRecordingContext *context, Args &&... args) |
template<typename Op , typename... Args> | |
static Owner | MakeWithProcessorSet (GrRecordingContext *context, const SkPMColor4f &color, GrPaint &&paint, Args &&... args) |
template<typename Op , typename... Args> | |
static Owner | MakeWithExtraMemory (GrRecordingContext *context, size_t extraSize, Args &&... args) |
static uint32_t | GenOpClassID () |
Protected Types inherited from GrDrawOp | |
enum class | FixedFunctionFlags : uint32_t { kNone = 0x0 , kUsesHWAA = 0x1 , kUsesStencil = 0x2 } |
Protected Member Functions inherited from GrDrawOp | |
GR_DECL_BITFIELD_CLASS_OPS_FRIENDS (FixedFunctionFlags) | |
virtual FixedFunctionFlags | fixedFunctionFlags () const |
Definition at line 23 of file StrokeTessellateOp.h.
skgpu::ganesh::StrokeTessellateOp::StrokeTessellateOp | ( | GrAAType | aaType, |
const SkMatrix & | viewMatrix, | ||
const SkPath & | path, | ||
const SkStrokeRec & | stroke, | ||
GrPaint && | paint | ||
) |
Definition at line 20 of file StrokeTessellateOp.cpp.
|
overrideprivatevirtual |
This is called after the GrAppliedClip has been computed and just prior to recording the op or combining it with a previously recorded op. The op should convert any proxies or resources it owns to "pending io" status so that resource allocation can be more optimal. Additionally, at this time the op must report whether a copy of the destination (or destination texture itself) needs to be provided to the GrXferProcessor when this op executes.
Implements GrDrawOp.
Definition at line 58 of file StrokeTessellateOp.cpp.
|
inlineoverrideprivatevirtual |
Implements GrOp.
Definition at line 48 of file StrokeTessellateOp.h.
|
overrideprivatevirtual |
Reimplemented from GrOp.
Definition at line 75 of file StrokeTessellateOp.cpp.
|
overrideprivatevirtual |
Implements GrOp.
Definition at line 228 of file StrokeTessellateOp.cpp.
|
overrideprivatevirtual |
Implements GrOp.
Definition at line 214 of file StrokeTessellateOp.cpp.
|
overrideprivatevirtual |
Implements GrOp.
Definition at line 195 of file StrokeTessellateOp.cpp.
|
inlineoverrideprivatevirtual |
Called before setting up the GrAppliedClip and before finalize. This information is required to determine how to compute a GrAppliedClip from a GrClip for this op.
Reimplemented from GrDrawOp.
Definition at line 50 of file StrokeTessellateOp.h.
|
inlineoverrideprivatevirtual |
Called after finalize, at which point every op should know whether it will need stencil.
Reimplemented from GrDrawOp.
Definition at line 52 of file StrokeTessellateOp.h.
|
overrideprivatevirtual |
Reimplemented from GrOp.
Definition at line 48 of file StrokeTessellateOp.cpp.