| Index: src/gpu/SkGpuDevice.cpp
|
| diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp
|
| index a6c8a1fc74fceb34ff86038324c78d25368c2fa0..c91331f4b9873f3381f3cf995fd92165b528f041 100644
|
| --- a/src/gpu/SkGpuDevice.cpp
|
| +++ b/src/gpu/SkGpuDevice.cpp
|
| @@ -171,13 +171,10 @@ sk_sp<GrDrawContext> SkGpuDevice::MakeDrawContext(GrContext* context,
|
| at = kPremul_SkAlphaType; // force this setting
|
| }
|
|
|
| - GrPixelConfig origConfig = SkImageInfo2GrPixelConfig(ct, at, cs, *context->caps());
|
| - if (!context->caps()->isConfigRenderable(origConfig, sampleCount > 0)) {
|
| - // Fall back from whatever ct was to default of kRGBA or kBGRA which is aliased as kN32
|
| - ct = kN32_SkColorType;
|
| - }
|
| -
|
| GrPixelConfig config = SkImageInfo2GrPixelConfig(ct, at, cs, *context->caps());
|
| + if (!context->caps()->isConfigRenderable(config, sampleCount > 0)) {
|
| + return nullptr;
|
| + }
|
|
|
| return context->makeDrawContext(SkBackingFit::kExact, // Why exact?
|
| origInfo.width(), origInfo.height(),
|
|
|