diff options
author | joshualitt <joshualitt@chromium.org> | 2014-08-11 13:55:34 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-08-11 13:55:34 -0700 |
commit | 5acfea789d39106dbc706c6ee85cd8f027fce3ed (patch) | |
tree | ceec0b44a8cace23a13cdce08e1ffd27437a73ea /src/gpu/effects/GrMatrixConvolutionEffect.h | |
parent | a10555a354cf294bde217044472d33c3161df249 (diff) |
2D kernel initial wiring for Guassian
BUG=skia:
R=senorblanco@chromium.org, bsalomon@chromium.org, bsalomon@google.com
Author: joshualitt@chromium.org
Review URL: https://codereview.chromium.org/418223009
Diffstat (limited to 'src/gpu/effects/GrMatrixConvolutionEffect.h')
-rw-r--r-- | src/gpu/effects/GrMatrixConvolutionEffect.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/gpu/effects/GrMatrixConvolutionEffect.h b/src/gpu/effects/GrMatrixConvolutionEffect.h index 24c3bdb285..814299f2d1 100644 --- a/src/gpu/effects/GrMatrixConvolutionEffect.h +++ b/src/gpu/effects/GrMatrixConvolutionEffect.h @@ -38,6 +38,18 @@ public: tileMode, convolveAlpha)); } + + static GrEffect* CreateGaussian(GrTexture* texture, + const SkIRect& bounds, + const SkISize& kernelSize, + SkScalar gain, + SkScalar bias, + const SkIPoint& kernelOffset, + GrTextureDomain::Mode tileMode, + bool convolveAlpha, + SkScalar sigmaX, + SkScalar sigmaY); + virtual ~GrMatrixConvolutionEffect(); virtual void getConstantColorComponents(GrColor* color, @@ -75,7 +87,7 @@ private: SkIRect fBounds; SkISize fKernelSize; - float* fKernel; + float fKernel[MAX_KERNEL_SIZE]; float fGain; float fBias; float fKernelOffset[2]; |