8#ifndef StrokeTessellateOp_DEFINED
9#define StrokeTessellateOp_DEFINED
39 bool shouldUseDynamicStates(
PatchAttribs neededDynamicStates)
const {
42 constexpr static int kMaxVerbsToEnableDynamicState = 50;
43 bool anyStateDisabled = (bool)(~fPatchAttribs & neededDynamicStates);
44 bool allStatesEnabled = !anyStateDisabled;
45 return allStatesEnabled || (fTotalCombinedVerbCnt <= kMaxVerbsToEnableDynamicState);
48 const char* name()
const override {
return "StrokeTessellateOp"; }
52 bool usesStencil()
const override {
74 int fTotalCombinedVerbCnt = 0;
#define DEFINE_OP_CLASS_ID
std::function< void(GrSurfaceProxy *, skgpu::Mipmapped)> GrVisitProxyFunc
StrokeTessellateOp(GrAAType, const SkMatrix &, const SkPath &, const SkStrokeRec &, GrPaint &&)
tess::PatchAttribs PatchAttribs
StrokeTessellator::PathStrokeList PathStrokeList