ccpr: Clean up GrCoverageCountingPathRenderer
Extracts all the nested classes to their own files and detangles
their interactions. Encapsulates the per-flush resources in their in
their own separate class.
Bug: skia:
Change-Id: Ic134b627f6b66cb2ce1e5d6f896ac6b2f75f6fa2
Reviewed-on: https://skia-review.googlesource.com/126845
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
diff --git a/src/gpu/ccpr/GrCCClipProcessor.h b/src/gpu/ccpr/GrCCClipProcessor.h
index 374a2df..8c670e1 100644
--- a/src/gpu/ccpr/GrCCClipProcessor.h
+++ b/src/gpu/ccpr/GrCCClipProcessor.h
@@ -9,18 +9,17 @@
#define GrCCClipProcessor_DEFINED
#include "GrFragmentProcessor.h"
-#include "ccpr/GrCoverageCountingPathRenderer.h"
+
+class GrCCClipPath;
class GrCCClipProcessor : public GrFragmentProcessor {
public:
- using ClipPath = GrCoverageCountingPathRenderer::ClipPath;
-
enum class MustCheckBounds : bool {
kNo = false,
kYes = true
};
- GrCCClipProcessor(const ClipPath*, MustCheckBounds, SkPath::FillType overrideFillType);
+ GrCCClipProcessor(const GrCCClipPath*, MustCheckBounds, SkPath::FillType overrideFillType);
const char* name() const override { return "GrCCClipProcessor"; }
std::unique_ptr<GrFragmentProcessor> clone() const override;
@@ -29,7 +28,7 @@
GrGLSLFragmentProcessor* onCreateGLSLInstance() const override;
private:
- const ClipPath* const fClipPath;
+ const GrCCClipPath* const fClipPath;
const bool fMustCheckBounds;
const SkPath::FillType fOverrideFillType;
const TextureSampler fAtlasAccess;