Index: src/effects/SkMorphologyImageFilter.cpp |
diff --git a/src/effects/SkMorphologyImageFilter.cpp b/src/effects/SkMorphologyImageFilter.cpp |
index 7d6bfff944935c0f95e9071bdada64d2d353c227..b8efd2dcc827a6df33dbac2d8b58440cbc4d1e04 100644 |
--- a/src/effects/SkMorphologyImageFilter.cpp |
+++ b/src/effects/SkMorphologyImageFilter.cpp |
@@ -471,12 +471,12 @@ void apply_morphology_rect(GrDrawContext* drawContext, |
float bounds[2], |
Gr1DKernelEffect::Direction direction) { |
GrPaint paint; |
- paint.addColorProcessor(GrMorphologyEffect::Create(paint.getProcessorDataManager(), |
- texture, |
- direction, |
- radius, |
- morphType, |
- bounds))->unref(); |
+ paint.addColorFragmentProcessor(GrMorphologyEffect::Create(paint.getProcessorDataManager(), |
+ texture, |
+ direction, |
+ radius, |
+ morphType, |
+ bounds))->unref(); |
drawContext->drawNonAARectToRect(rt, clip, paint, SkMatrix::I(), SkRect::Make(dstRect), |
SkRect::Make(srcRect)); |
} |
@@ -491,11 +491,11 @@ void apply_morphology_rect_no_bounds(GrDrawContext* drawContext, |
GrMorphologyEffect::MorphologyType morphType, |
Gr1DKernelEffect::Direction direction) { |
GrPaint paint; |
- paint.addColorProcessor(GrMorphologyEffect::Create(paint.getProcessorDataManager(), |
- texture, |
- direction, |
- radius, |
- morphType))->unref(); |
+ paint.addColorFragmentProcessor(GrMorphologyEffect::Create(paint.getProcessorDataManager(), |
+ texture, |
+ direction, |
+ radius, |
+ morphType))->unref(); |
drawContext->drawNonAARectToRect(rt, clip, paint, SkMatrix::I(), SkRect::Make(dstRect), |
SkRect::Make(srcRect)); |
} |