diff options
author | 2015-07-09 10:24:35 -0700 | |
---|---|---|
committer | 2015-07-09 10:24:36 -0700 | |
commit | 5f10b5c1b5744106312e24835d235b72fdba5802 (patch) | |
tree | 84b17f420f40ff9793f7d24285fa81412102bae7 /src/gpu/effects/GrConvolutionEffect.h | |
parent | cc29d26f5742449eb2a2bafa7bbb6ec5ee701aef (diff) |
More threading of GrProcessorDataManager
TBR=bsalomon@google.com
BUG=skia:
Review URL: https://codereview.chromium.org/1230813003
Diffstat (limited to 'src/gpu/effects/GrConvolutionEffect.h')
-rw-r--r-- | src/gpu/effects/GrConvolutionEffect.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/gpu/effects/GrConvolutionEffect.h b/src/gpu/effects/GrConvolutionEffect.h index b885f19021..066da1975c 100644 --- a/src/gpu/effects/GrConvolutionEffect.h +++ b/src/gpu/effects/GrConvolutionEffect.h @@ -21,13 +21,15 @@ class GrConvolutionEffect : public Gr1DKernelEffect { public: /// Convolve with an arbitrary user-specified kernel - static GrFragmentProcessor* Create(GrTexture* tex, + static GrFragmentProcessor* Create(GrProcessorDataManager* procDataManager, + GrTexture* tex, Direction dir, int halfWidth, const float* kernel, bool useBounds, float bounds[2]) { - return SkNEW_ARGS(GrConvolutionEffect, (tex, + return SkNEW_ARGS(GrConvolutionEffect, (procDataManager, + tex, dir, halfWidth, kernel, @@ -36,13 +38,15 @@ public: } /// Convolve with a Gaussian kernel - static GrFragmentProcessor* CreateGaussian(GrTexture* tex, + static GrFragmentProcessor* CreateGaussian(GrProcessorDataManager* procDataManager, + GrTexture* tex, Direction dir, int halfWidth, float gaussianSigma, bool useBounds, float bounds[2]) { - return SkNEW_ARGS(GrConvolutionEffect, (tex, + return SkNEW_ARGS(GrConvolutionEffect, (procDataManager, + tex, dir, halfWidth, gaussianSigma, @@ -81,14 +85,16 @@ protected: float fBounds[2]; private: - GrConvolutionEffect(GrTexture*, Direction, + GrConvolutionEffect(GrProcessorDataManager*, + GrTexture*, Direction, int halfWidth, const float* kernel, bool useBounds, float bounds[2]); /// Convolve with a Gaussian kernel - GrConvolutionEffect(GrTexture*, Direction, + GrConvolutionEffect(GrProcessorDataManager*, + GrTexture*, Direction, int halfWidth, float gaussianSigma, bool useBounds, |