Index: src/gpu/effects/GrMatrixConvolutionEffect.h |
diff --git a/src/gpu/effects/GrMatrixConvolutionEffect.h b/src/gpu/effects/GrMatrixConvolutionEffect.h |
index 814299f2d1c182887b85edc5cf66dc25bb3ff5e5..4cc4296eeeca2e007af008f322d5bcf7167adcbd 100644 |
--- a/src/gpu/effects/GrMatrixConvolutionEffect.h |
+++ b/src/gpu/effects/GrMatrixConvolutionEffect.h |
@@ -19,15 +19,15 @@ class GrGLMatrixConvolutionEffect; |
class GrMatrixConvolutionEffect : public GrSingleTextureEffect { |
public: |
- static GrEffect* Create(GrTexture* texture, |
- const SkIRect& bounds, |
- const SkISize& kernelSize, |
- const SkScalar* kernel, |
- SkScalar gain, |
- SkScalar bias, |
- const SkIPoint& kernelOffset, |
- GrTextureDomain::Mode tileMode, |
- bool convolveAlpha) { |
+ static GrFragmentProcessor* Create(GrTexture* texture, |
+ const SkIRect& bounds, |
+ const SkISize& kernelSize, |
+ const SkScalar* kernel, |
+ SkScalar gain, |
+ SkScalar bias, |
+ const SkIPoint& kernelOffset, |
+ GrTextureDomain::Mode tileMode, |
+ bool convolveAlpha) { |
return SkNEW_ARGS(GrMatrixConvolutionEffect, (texture, |
bounds, |
kernelSize, |
@@ -39,16 +39,16 @@ public: |
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); |
+ static GrFragmentProcessor* 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(); |
@@ -68,9 +68,9 @@ public: |
bool convolveAlpha() const { return fConvolveAlpha; } |
const GrTextureDomain& domain() const { return fDomain; } |
- typedef GrGLMatrixConvolutionEffect GLEffect; |
+ typedef GrGLMatrixConvolutionEffect GLProcessor; |
- virtual const GrBackendEffectFactory& getFactory() const SK_OVERRIDE; |
+ virtual const GrBackendFragmentProcessorFactory& getFactory() const SK_OVERRIDE; |
private: |
GrMatrixConvolutionEffect(GrTexture*, |
@@ -83,7 +83,7 @@ private: |
GrTextureDomain::Mode tileMode, |
bool convolveAlpha); |
- virtual bool onIsEqual(const GrEffect&) const SK_OVERRIDE; |
+ virtual bool onIsEqual(const GrProcessor&) const SK_OVERRIDE; |
SkIRect fBounds; |
SkISize fKernelSize; |
@@ -94,7 +94,7 @@ private: |
bool fConvolveAlpha; |
GrTextureDomain fDomain; |
- GR_DECLARE_EFFECT_TEST; |
+ GR_DECLARE_FRAGMENT_PROCESSOR_TEST; |
typedef GrSingleTextureEffect INHERITED; |
}; |