aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/effects/GrMatrixConvolutionEffect.h
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-07-09 10:24:35 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-07-09 10:24:36 -0700
commit5f10b5c1b5744106312e24835d235b72fdba5802 (patch)
tree84b17f420f40ff9793f7d24285fa81412102bae7 /src/gpu/effects/GrMatrixConvolutionEffect.h
parentcc29d26f5742449eb2a2bafa7bbb6ec5ee701aef (diff)
More threading of GrProcessorDataManager
TBR=bsalomon@google.com BUG=skia: Review URL: https://codereview.chromium.org/1230813003
Diffstat (limited to 'src/gpu/effects/GrMatrixConvolutionEffect.h')
-rw-r--r--src/gpu/effects/GrMatrixConvolutionEffect.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/gpu/effects/GrMatrixConvolutionEffect.h b/src/gpu/effects/GrMatrixConvolutionEffect.h
index 6a340fbbd5..7a95df31b8 100644
--- a/src/gpu/effects/GrMatrixConvolutionEffect.h
+++ b/src/gpu/effects/GrMatrixConvolutionEffect.h
@@ -18,7 +18,8 @@
class GrMatrixConvolutionEffect : public GrSingleTextureEffect {
public:
- static GrFragmentProcessor* Create(GrTexture* texture,
+ static GrFragmentProcessor* Create(GrProcessorDataManager* procDataManager,
+ GrTexture* texture,
const SkIRect& bounds,
const SkISize& kernelSize,
const SkScalar* kernel,
@@ -27,7 +28,8 @@ public:
const SkIPoint& kernelOffset,
GrTextureDomain::Mode tileMode,
bool convolveAlpha) {
- return SkNEW_ARGS(GrMatrixConvolutionEffect, (texture,
+ return SkNEW_ARGS(GrMatrixConvolutionEffect, (procDataManager,
+ texture,
bounds,
kernelSize,
kernel,
@@ -38,7 +40,8 @@ public:
convolveAlpha));
}
- static GrFragmentProcessor* CreateGaussian(GrTexture* texture,
+ static GrFragmentProcessor* CreateGaussian(GrProcessorDataManager*,
+ GrTexture* texture,
const SkIRect& bounds,
const SkISize& kernelSize,
SkScalar gain,
@@ -67,7 +70,8 @@ public:
GrGLFragmentProcessor* createGLInstance() const override;
private:
- GrMatrixConvolutionEffect(GrTexture*,
+ GrMatrixConvolutionEffect(GrProcessorDataManager*,
+ GrTexture*,
const SkIRect& bounds,
const SkISize& kernelSize,
const SkScalar* kernel,