Index: src/effects/SkMorphologyImageFilter.cpp |
diff --git a/src/effects/SkMorphologyImageFilter.cpp b/src/effects/SkMorphologyImageFilter.cpp |
index 7e27249a13d97edd953c6529833e2a1327c2083c..d5c3a2d190bccf3a64a47c4bf50f947660b83660 100644 |
--- a/src/effects/SkMorphologyImageFilter.cpp |
+++ b/src/effects/SkMorphologyImageFilter.cpp |
@@ -485,10 +485,10 @@ static sk_sp<SkSpecialImage> apply_morphology(GrContext* context, |
SkASSERT(radius.width() > 0 || radius.height() > 0); |
if (radius.fWidth > 0) { |
- sk_sp<GrDrawContext> dstDrawContext(context->newDrawContext(SkBackingFit::kApprox, |
- rect.width(), rect.height(), |
- kSkia8888_GrPixelConfig, |
- colorSpace)); |
+ sk_sp<GrDrawContext> dstDrawContext(context->makeDrawContext(SkBackingFit::kApprox, |
+ rect.width(), rect.height(), |
+ kSkia8888_GrPixelConfig, |
+ colorSpace)); |
if (!dstDrawContext) { |
return nullptr; |
} |
@@ -507,10 +507,10 @@ static sk_sp<SkSpecialImage> apply_morphology(GrContext* context, |
srcRect = dstRect; |
} |
if (radius.fHeight > 0) { |
- sk_sp<GrDrawContext> dstDrawContext(context->newDrawContext(SkBackingFit::kApprox, |
- rect.width(), rect.height(), |
- kSkia8888_GrPixelConfig, |
- colorSpace)); |
+ sk_sp<GrDrawContext> dstDrawContext(context->makeDrawContext(SkBackingFit::kApprox, |
+ rect.width(), rect.height(), |
+ kSkia8888_GrPixelConfig, |
+ colorSpace)); |
if (!dstDrawContext) { |
return nullptr; |
} |