Index: src/effects/gradients/SkGradientShader.cpp |
diff --git a/src/effects/gradients/SkGradientShader.cpp b/src/effects/gradients/SkGradientShader.cpp |
index 27f6136403a6186faea1c7e0444d6ff151b8e8e5..d625d8eb138299d0d2294ed8eb3fcdf0e8d4a578 100644 |
--- a/src/effects/gradients/SkGradientShader.cpp |
+++ b/src/effects/gradients/SkGradientShader.cpp |
@@ -1498,8 +1498,8 @@ GrGradientEffect::GrGradientEffect(const CreateArgs& args) { |
} else if (args.fContext->caps()->isConfigTexturable(kSRGBA_8888_GrPixelConfig)) { |
bitmapType = SkGradientShaderBase::GradientBitmapType::kSRGB; |
} else { |
- // This should never happen, but just fall back to legacy behavior |
- SkDEBUGFAIL("Requesting a gamma-correct gradient FP without F16 or sRGB"); |
+ // This can happen, but only if someone explicitly creates an unsupported |
+ // (eg sRGB) surface. Just fall back to legacy behavior. |
} |
} |