aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/ccpr/GrCCClipProcessor.cpp
diff options
context:
space:
mode:
authorGravatar Chris Dalton <csmartdalton@google.com>2018-05-09 01:08:38 -0600
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-05-09 18:14:05 +0000
commit5ba36ba9f5b414ffbe6f1a60598f47c5da57941f (patch)
tree6c614d2517b778b3666cefbfce3c6e24fcdfe4f9 /src/gpu/ccpr/GrCCClipProcessor.cpp
parent969a738e7f7fe03832acb86362d133db40623c01 (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.cpp')
-rw-r--r--src/gpu/ccpr/GrCCClipProcessor.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gpu/ccpr/GrCCClipProcessor.cpp b/src/gpu/ccpr/GrCCClipProcessor.cpp
index 4a3b7a5216..d4da596039 100644
--- a/src/gpu/ccpr/GrCCClipProcessor.cpp
+++ b/src/gpu/ccpr/GrCCClipProcessor.cpp
@@ -10,11 +10,12 @@
#include "GrTexture.h"
#include "GrTextureProxy.h"
#include "SkMakeUnique.h"
+#include "ccpr/GrCCClipPath.h"
#include "glsl/GrGLSLFragmentProcessor.h"
#include "glsl/GrGLSLFragmentShaderBuilder.h"
-GrCCClipProcessor::GrCCClipProcessor(const ClipPath* clipPath, MustCheckBounds mustCheckBounds,
- SkPath::FillType overrideFillType)
+GrCCClipProcessor::GrCCClipProcessor(const GrCCClipPath* clipPath, MustCheckBounds mustCheckBounds,
+ SkPath::FillType overrideFillType)
: INHERITED(kGrCCClipProcessor_ClassID, kCompatibleWithCoverageAsAlpha_OptimizationFlag)
, fClipPath(clipPath)
, fMustCheckBounds((bool)mustCheckBounds)
@@ -26,7 +27,7 @@ GrCCClipProcessor::GrCCClipProcessor(const ClipPath* clipPath, MustCheckBounds m
std::unique_ptr<GrFragmentProcessor> GrCCClipProcessor::clone() const {
return skstd::make_unique<GrCCClipProcessor>(fClipPath, MustCheckBounds(fMustCheckBounds),
- fOverrideFillType);
+ fOverrideFillType);
}
void GrCCClipProcessor::onGetGLSLProcessorKey(const GrShaderCaps&, GrProcessorKeyBuilder* b) const {