| Index: src/effects/SkMatrixConvolutionImageFilter.cpp
|
| diff --git a/src/effects/SkMatrixConvolutionImageFilter.cpp b/src/effects/SkMatrixConvolutionImageFilter.cpp
|
| index e3711d29b911e4579eb4e2f1a56939310394efbd..b22dcb01bc0c0d52b974355d3f88485fd4754e5b 100644
|
| --- a/src/effects/SkMatrixConvolutionImageFilter.cpp
|
| +++ b/src/effects/SkMatrixConvolutionImageFilter.cpp
|
| @@ -560,20 +560,20 @@ GrEffectRef* GrMatrixConvolutionEffect::TestCreate(SkMWCRandom* random,
|
| convolveAlpha);
|
| }
|
|
|
| -bool SkMatrixConvolutionImageFilter::asNewEffect(GrEffectRef** effect,
|
| - GrTexture* texture) const {
|
| - bool ok = fKernelSize.width() * fKernelSize.height() <= MAX_KERNEL_SIZE;
|
| - if (ok && effect) {
|
| - *effect = GrMatrixConvolutionEffect::Create(texture,
|
| - fKernelSize,
|
| - fKernel,
|
| - fGain,
|
| - fBias,
|
| - fTarget,
|
| - fTileMode,
|
| - fConvolveAlpha);
|
| - }
|
| - return ok;
|
| +bool SkMatrixConvolutionImageFilter::canFilterImageGPU() const {
|
| + return fKernelSize.width() * fKernelSize.height() <= MAX_KERNEL_SIZE;
|
| +}
|
| +
|
| +GrEffectRef* SkMatrixConvolutionImageFilter::asNewEffect(GrTexture* texture) const {
|
| + SkASSERT(fKernelSize.width() * fKernelSize.height() <= MAX_KERNEL_SIZE);
|
| + return GrMatrixConvolutionEffect::Create(texture,
|
| + fKernelSize,
|
| + fKernel,
|
| + fGain,
|
| + fBias,
|
| + fTarget,
|
| + fTileMode,
|
| + fConvolveAlpha);
|
| }
|
|
|
| ///////////////////////////////////////////////////////////////////////////////
|
|
|