Index: src/effects/SkMorphologyImageFilter.cpp |
diff --git a/src/effects/SkMorphologyImageFilter.cpp b/src/effects/SkMorphologyImageFilter.cpp |
index cb17c9011b6e9b98b8e7a807580983812e22e9ff..4783abdce9380633361a466f0520c246c1c17629 100644 |
--- a/src/effects/SkMorphologyImageFilter.cpp |
+++ b/src/effects/SkMorphologyImageFilter.cpp |
@@ -452,10 +452,10 @@ void apply_morphology_pass(GrContext* context, |
GrMorphologyEffect::MorphologyType morphType, |
Gr1DKernelEffect::Direction direction) { |
GrPaint paint; |
- paint.colorStage(0)->setEffect(GrMorphologyEffect::Create(texture, |
- direction, |
- radius, |
- morphType))->unref(); |
+ paint.addColorEffect(GrMorphologyEffect::Create(texture, |
+ direction, |
+ radius, |
+ morphType))->unref(); |
context->drawRect(paint, SkRect::MakeFromIRect(rect)); |
} |