Replace the indirect patch tessellator with fixed count
Bug: skia:10419
Change-Id: Icb3395565060d736624d03ba1465926bd9188e44
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/416078
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Reviewed-by: Jim Van Verth <jvanverth@google.com>
diff --git a/src/gpu/tessellate/GrPathInnerTriangulateOp.cpp b/src/gpu/tessellate/GrPathInnerTriangulateOp.cpp
index c340ae9..37b4c75 100644
--- a/src/gpu/tessellate/GrPathInnerTriangulateOp.cpp
+++ b/src/gpu/tessellate/GrPathInnerTriangulateOp.cpp
@@ -14,7 +14,6 @@
#include "src/gpu/GrRecordingContextPriv.h"
#include "src/gpu/glsl/GrGLSLVertexGeoBuilder.h"
#include "src/gpu/tessellate/GrPathCurveTessellator.h"
-#include "src/gpu/tessellate/GrPathIndirectTessellator.h"
#include "src/gpu/tessellate/GrTessellationPathRenderer.h"
#include "src/gpu/tessellate/shaders/GrPathTessellationShader.h"
@@ -189,16 +188,10 @@
// Pass 1: Tessellate the outer curves into the stencil buffer.
if (!isLinear) {
- if (args.fCaps->shaderCaps()->tessellationSupport() &&
- fPath.countVerbs() >= args.fCaps->minPathVerbsForHwTessellation()) {
- fTessellator = GrPathCurveTessellator::Make(args.fArena, fViewMatrix,
- SK_PMColor4fTRANSPARENT,
- GrPathTessellator::DrawInnerFan::kNo);
- } else {
- fTessellator = GrPathIndirectTessellator::Make(args.fArena, fPath, fViewMatrix,
- SK_PMColor4fTRANSPARENT,
- GrPathTessellator::DrawInnerFan::kNo);
- }
+ fTessellator = GrPathCurveTessellator::Make(args.fArena, fViewMatrix,
+ SK_PMColor4fTRANSPARENT,
+ GrPathTessellator::DrawInnerFan::kNo,
+ fPath.countVerbs(), *args.fCaps);
const GrUserStencilSettings* stencilPathSettings =
GrPathTessellationShader::StencilPathSettings(fPath.getFillType());
fStencilCurvesProgram = GrTessellationShader::MakeProgram(args, fTessellator->shader(),