8#ifndef GrMeshDrawOp_DEFINED
9#define GrMeshDrawOp_DEFINED
48 dstProxyView, renderPassXferBarriers, colorLoadOp);
59 int indicesPerRepetition,
int repeatCount,
int maxRepetitions);
73 int indicesPerRepetition,
int repeatCount,
int maxRepetitions);
76 void* fVertices =
nullptr;
98 bool willBeUpgradedToAA,
99 int combinedQuadCount);
115 bool usesMSAASurface,
static SkPath clip(const SkPath &path, const SkHalfPlane &plane)
GrDrawOp(uint32_t classID)
void recordDraw(GrMeshDrawTarget *, const GrGeometryProcessor *) const
void init(GrMeshDrawTarget *, GrPrimitiveType, size_t vertexStride, sk_sp< const GrBuffer > indexBuffer, int verticesPerRepetition, int indicesPerRepetition, int repeatCount, int maxRepetitions)
virtual GrProgramInfo * programInfo()=0
void createProgramInfo(const GrCaps *caps, SkArenaAlloc *arena, const GrSurfaceProxyView &writeView, bool usesMSAASurface, GrAppliedClip &&appliedClip, const GrDstProxyView &dstProxyView, GrXferBarrierFlags renderPassXferBarriers, GrLoadOp colorLoadOp)
GrMeshDrawOp(uint32_t classID)
virtual void onPrePrepareDraws(GrRecordingContext *, const GrSurfaceProxyView &writeView, GrAppliedClip *, const GrDstProxyView &, GrXferBarrierFlags renderPassXferBarriers, GrLoadOp colorLoadOp)
virtual void onCreateProgramInfo(const GrCaps *, SkArenaAlloc *, const GrSurfaceProxyView &writeView, bool usesMSAASurface, GrAppliedClip &&, const GrDstProxyView &, GrXferBarrierFlags renderPassXferBarriers, GrLoadOp colorLoadOp)=0
virtual void onPrepareDraws(GrMeshDrawTarget *)=0
static bool CanUpgradeAAOnMerge(GrAAType aa1, GrAAType aa2)
static bool CombinedQuadCountWillOverflow(GrAAType aaType, bool willBeUpgradedToAA, int combinedQuadCount)