Index: src/effects/SkAlphaThresholdFilter.cpp |
diff --git a/src/effects/SkAlphaThresholdFilter.cpp b/src/effects/SkAlphaThresholdFilter.cpp |
index 5170a3d09880f8616afdb858b12dedcf27391090..1f9a9cc5e22a89b4e752e3ed63b949266139aec4 100644 |
--- a/src/effects/SkAlphaThresholdFilter.cpp |
+++ b/src/effects/SkAlphaThresholdFilter.cpp |
@@ -96,16 +96,12 @@ SkAlphaThresholdFilterImpl::SkAlphaThresholdFilterImpl(const SkRegion& region, |
sk_sp<GrTexture> SkAlphaThresholdFilterImpl::createMaskTexture(GrContext* context, |
const SkMatrix& inMatrix, |
const SkIRect& bounds) const { |
- GrPixelConfig config; |
- if (context->caps()->isConfigRenderable(kAlpha_8_GrPixelConfig, false)) { |
- config = kAlpha_8_GrPixelConfig; |
- } else { |
- config = kRGBA_8888_GrPixelConfig; |
- } |
- sk_sp<GrDrawContext> drawContext(context->makeDrawContext(SkBackingFit::kApprox, |
- bounds.width(), bounds.height(), |
- config, nullptr)); |
+ sk_sp<GrDrawContext> drawContext(context->makeDrawContextWithFallback(SkBackingFit::kApprox, |
+ bounds.width(), |
+ bounds.height(), |
+ kAlpha_8_GrPixelConfig, |
+ nullptr)); |
if (!drawContext) { |
return nullptr; |
} |