Tune up tessellated stroke gms
* Make sure to actually use hardware tessellation on the *_tess_segs_5
gms. These had started using the fixed count tessellator.
* Add a trickycubicstrokes version with round caps to test upcoming
coverage AA modes.
* Make the colors more appealing since I spend all day looking at
these gms.
Bug: skia:10419
Change-Id: Ie7ab4e936ffa3ccffe4999e51fac4c3d4ab97f06
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/406976
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
diff --git a/src/gpu/tessellate/GrStrokeTessellateOp.h b/src/gpu/tessellate/GrStrokeTessellateOp.h
index 981fba8..fb7d631 100644
--- a/src/gpu/tessellate/GrStrokeTessellateOp.h
+++ b/src/gpu/tessellate/GrStrokeTessellateOp.h
@@ -41,12 +41,7 @@
return allStatesEnabled || (fTotalCombinedVerbCnt <= kMaxVerbsToEnableDynamicState);
}
- bool canUseHardwareTessellation(const GrCaps& caps) {
- SkASSERT(!fStencilProgram && !fFillProgram); // Ensure we haven't std::moved fProcessors.
- // Our back door for HW tessellation shaders isn't currently capable of passing varyings to
- // the fragment shader, so if the processors have varyings we need to use indirect draws.
- return caps.shaderCaps()->tessellationSupport() && !fProcessors.usesVaryingCoords();
- }
+ bool canUseHardwareTessellation(int numVerbs, const GrCaps& caps);
const char* name() const override { return "GrStrokeTessellateOp"; }
void visitProxies(const VisitProxyFunc& fn) const override;