Index: src/gpu/GrClipStackClip.cpp |
diff --git a/src/gpu/GrClipStackClip.cpp b/src/gpu/GrClipStackClip.cpp |
index 003b4a5d439bb63782dd1370ea6bc7a0f94b4172..4572db5f321303312244b4ef3ec1f85a931cb3cb 100644 |
--- a/src/gpu/GrClipStackClip.cpp |
+++ b/src/gpu/GrClipStackClip.cpp |
@@ -413,16 +413,11 @@ sk_sp<GrTexture> GrClipStackClip::CreateAlphaClipMask(GrContext* context, |
return sk_sp<GrTexture>(texture); |
} |
- // There's no texture in the cache. Let's try to allocate it then. |
- GrPixelConfig config = kRGBA_8888_GrPixelConfig; |
- if (context->caps()->isConfigRenderable(kAlpha_8_GrPixelConfig, false)) { |
- config = kAlpha_8_GrPixelConfig; |
- } |
- |
- sk_sp<GrDrawContext> dc(context->makeDrawContext(SkBackingFit::kApprox, |
- reducedClip.width(), |
- reducedClip.height(), |
- config, nullptr)); |
+ sk_sp<GrDrawContext> dc(context->makeDrawContextWithFallback(SkBackingFit::kApprox, |
+ reducedClip.width(), |
+ reducedClip.height(), |
+ kAlpha_8_GrPixelConfig, |
+ nullptr)); |
if (!dc) { |
return nullptr; |
} |