Index: src/effects/SkGpuBlurUtils.cpp |
diff --git a/src/effects/SkGpuBlurUtils.cpp b/src/effects/SkGpuBlurUtils.cpp |
index b22286b25f947096c8d6f242738b23b5a1ea777a..8603120e86498a3163b9abe964a243b84d4ed82a 100644 |
--- a/src/effects/SkGpuBlurUtils.cpp |
+++ b/src/effects/SkGpuBlurUtils.cpp |
@@ -56,7 +56,6 @@ static void convolve_gaussian_1d(GrContext* context, |
paint.reset(); |
SkAutoTUnref<GrFragmentProcessor> conv(GrConvolutionEffect::CreateGaussian( |
texture, direction, radius, sigma, useBounds, bounds)); |
- paint.reset(); |
paint.addColorProcessor(conv); |
context->drawNonAARectToRect(paint, SkMatrix::I(), dstRect, srcRect); |
} |
@@ -79,7 +78,6 @@ static void convolve_gaussian_2d(GrContext* context, |
texture, bounds, size, 1.0, 0.0, kernelOffset, |
useBounds ? GrTextureDomain::kClamp_Mode : GrTextureDomain::kIgnore_Mode, |
true, sigmaX, sigmaY)); |
- paint.reset(); |
paint.addColorProcessor(conv); |
context->drawNonAARectToRect(paint, SkMatrix::I(), dstRect, srcRect); |
} |