Index: src/effects/SkBlurMaskFilter.cpp |
diff --git a/src/effects/SkBlurMaskFilter.cpp b/src/effects/SkBlurMaskFilter.cpp |
index 52f99e112aec9ec1821020687e5bff7d72bb980a..f7174e921fa82b3f9a85ab50e38919bdcc6aa4fa 100644 |
--- a/src/effects/SkBlurMaskFilter.cpp |
+++ b/src/effects/SkBlurMaskFilter.cpp |
@@ -24,7 +24,6 @@ |
#include "GrInvariantOutput.h" |
#include "SkGrPixelRef.h" |
#include "SkDraw.h" |
-#include "effects/GrPorterDuffXferProcessor.h" |
#include "effects/GrSimpleTextureEffect.h" |
#include "gl/GrGLProcessor.h" |
#include "gl/builders/GrGLProgramBuilder.h" |
@@ -1219,15 +1218,15 @@ |
paint.addColorProcessor(GrSimpleTextureEffect::Create(src, matrix))->unref(); |
if (kInner_SkBlurStyle == fBlurStyle) { |
// inner: dst = dst * src |
- paint.setPorterDuffXPFactory(kDC_GrBlendCoeff, kZero_GrBlendCoeff); |
+ paint.setBlendFunc(kDC_GrBlendCoeff, kZero_GrBlendCoeff); |
} else if (kSolid_SkBlurStyle == fBlurStyle) { |
// solid: dst = src + dst - src * dst |
// = (1 - dst) * src + 1 * dst |
- paint.setPorterDuffXPFactory(kIDC_GrBlendCoeff, kOne_GrBlendCoeff); |
+ paint.setBlendFunc(kIDC_GrBlendCoeff, kOne_GrBlendCoeff); |
} else if (kOuter_SkBlurStyle == fBlurStyle) { |
// outer: dst = dst * (1 - src) |
// = 0 * src + (1 - src) * dst |
- paint.setPorterDuffXPFactory(kZero_GrBlendCoeff, kISC_GrBlendCoeff); |
+ paint.setBlendFunc(kZero_GrBlendCoeff, kISC_GrBlendCoeff); |
} |
context->drawRect(paint, clipRect); |
} |