Split GrPathTessellator subclasses into their own files
It was becoming a bit chaotic to have so many different algorithms in
one file.
Bug: skia:10419
Change-Id: I477b7b65439d16b0f983e10952cb41ec881e8183
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/413856
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
diff --git a/samplecode/SamplePathTessellators.cpp b/samplecode/SamplePathTessellators.cpp
index e397840..7901542 100644
--- a/samplecode/SamplePathTessellators.cpp
+++ b/samplecode/SamplePathTessellators.cpp
@@ -14,7 +14,9 @@
#include "src/core/SkCanvasPriv.h"
#include "src/gpu/GrRecordingContextPriv.h"
#include "src/gpu/GrSurfaceDrawContext.h"
-#include "src/gpu/tessellate/GrPathTessellator.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"
namespace {
@@ -76,8 +78,8 @@
fTessellator = GrPathWedgeTessellator::Make(alloc, fMatrix, kCyan);
break;
case Mode::kCurveTessellate:
- fTessellator = GrPathOuterCurveTessellator::Make(
- alloc, fMatrix, kCyan, GrPathTessellator::DrawInnerFan::kYes);
+ fTessellator = GrPathCurveTessellator::Make(alloc, fMatrix, kCyan,
+ GrPathTessellator::DrawInnerFan::kYes);
break;
}
fTessellator->prepare(flushState, this->bounds(), fPath);