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/samplecode/SamplePathTessellators.cpp b/samplecode/SamplePathTessellators.cpp
index 7901542..762d07c 100644
--- a/samplecode/SamplePathTessellators.cpp
+++ b/samplecode/SamplePathTessellators.cpp
@@ -15,7 +15,6 @@
 #include "src/gpu/GrRecordingContextPriv.h"
 #include "src/gpu/GrSurfaceDrawContext.h"
 #include "src/gpu/tessellate/GrPathCurveTessellator.h"
-#include "src/gpu/tessellate/GrPathIndirectTessellator.h"
 #include "src/gpu/tessellate/GrPathWedgeTessellator.h"
 #include "src/gpu/tessellate/shaders/GrPathTessellationShader.h"
 
@@ -70,16 +69,20 @@
         constexpr static SkPMColor4f kCyan = {0,1,1,1};
         auto alloc = flushState->allocator();
         switch (fMode) {
+            using DrawInnerFan = GrPathTessellator::DrawInnerFan;
+            using ShaderType = GrPathCurveTessellator::ShaderType;
             case Mode::kCurveMiddleOut:
-                fTessellator = GrPathIndirectTessellator::Make(
-                        alloc, fPath, fMatrix, kCyan, GrPathTessellator::DrawInnerFan::kYes);
+                fTessellator = GrPathCurveTessellator::Make(alloc, fMatrix, kCyan,
+                                                            DrawInnerFan::kYes,
+                                                            ShaderType::kFixedCountMiddleOut);
                 break;
             case Mode::kWedgeTessellate:
                 fTessellator = GrPathWedgeTessellator::Make(alloc, fMatrix, kCyan);
                 break;
             case Mode::kCurveTessellate:
                 fTessellator = GrPathCurveTessellator::Make(alloc, fMatrix, kCyan,
-                                                            GrPathTessellator::DrawInnerFan::kYes);
+                                                            DrawInnerFan::kYes,
+                                                            ShaderType::kHardwareTessellation);
                 break;
         }
         fTessellator->prepare(flushState, this->bounds(), fPath);