diff options
Diffstat (limited to 'src/gpu/effects/GrConvolutionEffect.h')
-rw-r--r-- | src/gpu/effects/GrConvolutionEffect.h | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/src/gpu/effects/GrConvolutionEffect.h b/src/gpu/effects/GrConvolutionEffect.h index f75cfe9155..e4faa945b8 100644 --- a/src/gpu/effects/GrConvolutionEffect.h +++ b/src/gpu/effects/GrConvolutionEffect.h @@ -22,16 +22,11 @@ class GrConvolutionEffect : public Gr1DKernelEffect { public: /// Convolve with an arbitrary user-specified kernel - static GrEffectRef* Create(GrTexture* tex, - Direction dir, - int halfWidth, - const float* kernel, - float cropRect[4]) { + static GrEffectRef* Create(GrTexture* tex, Direction dir, int halfWidth, const float* kernel) { AutoEffectUnref effect(SkNEW_ARGS(GrConvolutionEffect, (tex, dir, halfWidth, - kernel, - cropRect))); + kernel))); return CreateEffectRef(effect); } @@ -39,13 +34,11 @@ public: static GrEffectRef* CreateGaussian(GrTexture* tex, Direction dir, int halfWidth, - float gaussianSigma, - float cropRect[4]) { + float gaussianSigma) { AutoEffectUnref effect(SkNEW_ARGS(GrConvolutionEffect, (tex, dir, halfWidth, - gaussianSigma, - cropRect))); + gaussianSigma))); return CreateEffectRef(effect); } @@ -53,8 +46,6 @@ public: const float* kernel() const { return fKernel; } - const float* cropRect() const { return fCropRect; } - static const char* Name() { return "Convolution"; } typedef GrGLConvolutionEffect GLEffect; @@ -81,17 +72,15 @@ public: protected: float fKernel[kMaxKernelWidth]; - float fCropRect[4]; private: GrConvolutionEffect(GrTexture*, Direction, - int halfWidth, const float* kernel, float cropRect[4]); + int halfWidth, const float* kernel); /// Convolve with a Gaussian kernel GrConvolutionEffect(GrTexture*, Direction, int halfWidth, - float gaussianSigma, - float cropRect[4]); + float gaussianSigma); virtual bool onIsEqual(const GrEffect&) const SK_OVERRIDE; |