diff options
author | Chris Dalton <csmartdalton@google.com> | 2018-05-09 01:08:38 -0600 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-05-09 18:14:05 +0000 |
commit | 5ba36ba9f5b414ffbe6f1a60598f47c5da57941f (patch) | |
tree | 6c614d2517b778b3666cefbfce3c6e24fcdfe4f9 /src/gpu/ccpr/GrCCClipProcessor.h | |
parent | 969a738e7f7fe03832acb86362d133db40623c01 (diff) |
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>
Diffstat (limited to 'src/gpu/ccpr/GrCCClipProcessor.h')
-rw-r--r-- | src/gpu/ccpr/GrCCClipProcessor.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gpu/ccpr/GrCCClipProcessor.h b/src/gpu/ccpr/GrCCClipProcessor.h index 374a2dfe95..8c670e171d 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 @@ public: GrGLSLFragmentProcessor* onCreateGLSLInstance() const override; private: - const ClipPath* const fClipPath; + const GrCCClipPath* const fClipPath; const bool fMustCheckBounds; const SkPath::FillType fOverrideFillType; const TextureSampler fAtlasAccess; |