aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/effects
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2018-07-16 13:33:53 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-07-17 11:38:10 +0000
commit94fee93c9b23bd1a32604753da8bef755d6c8a95 (patch)
treeacad655e303bbf931f391ce76d5d034476d7b608 /src/gpu/effects
parent9c98576bceffc721a71550ea9c0942d9a008da3b (diff)
Reduce arbitrary opList splitting when sorting
Change-Id: I49a47672600f72dc46f27462a2c344e77a06a659 Reviewed-on: https://skia-review.googlesource.com/141243 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/effects')
-rw-r--r--src/gpu/effects/GrGaussianConvolutionFragmentProcessor.h21
1 files changed, 15 insertions, 6 deletions
diff --git a/src/gpu/effects/GrGaussianConvolutionFragmentProcessor.h b/src/gpu/effects/GrGaussianConvolutionFragmentProcessor.h
index 9850e605fb..6d68292616 100644
--- a/src/gpu/effects/GrGaussianConvolutionFragmentProcessor.h
+++ b/src/gpu/effects/GrGaussianConvolutionFragmentProcessor.h
@@ -44,6 +44,15 @@ public:
const char* name() const override { return "GaussianConvolution"; }
+ SkString dumpInfo() const override {
+ SkString str;
+ str.appendf("dir: %s radius: %d bounds: [%d %d]",
+ Direction::kX == fDirection ? "X" : "Y",
+ fRadius,
+ fBounds[0], fBounds[1]);
+ return str;
+ }
+
std::unique_ptr<GrFragmentProcessor> clone() const override {
return std::unique_ptr<GrFragmentProcessor>(
new GrGaussianConvolutionFragmentProcessor(*this));
@@ -74,14 +83,14 @@ private:
GR_DECLARE_FRAGMENT_PROCESSOR_TEST
- GrCoordTransform fCoordTransform;
- TextureSampler fTextureSampler;
+ GrCoordTransform fCoordTransform;
+ TextureSampler fTextureSampler;
// TODO: Inline the kernel constants into the generated shader code. This may involve pulling
// some of the logic from SkGpuBlurUtils into this class related to radius/sigma calculations.
- float fKernel[kMaxKernelWidth];
- int fBounds[2];
- int fRadius;
- Direction fDirection;
+ float fKernel[kMaxKernelWidth];
+ int fBounds[2];
+ int fRadius;
+ Direction fDirection;
GrTextureDomain::Mode fMode;
typedef GrFragmentProcessor INHERITED;