Index: src/effects/gradients/Sk4fLinearGradient.cpp |
diff --git a/src/effects/gradients/Sk4fLinearGradient.cpp b/src/effects/gradients/Sk4fLinearGradient.cpp |
index ca0ca6da60b7b1dcc71672d67ee7bd1b91248e5a..d22dbff8a170aa797e239a93582200b534eb7f38 100644 |
--- a/src/effects/gradients/Sk4fLinearGradient.cpp |
+++ b/src/effects/gradients/Sk4fLinearGradient.cpp |
@@ -448,7 +448,7 @@ LinearGradient4fContext::D32_BlitBW(BlitState* state, int x, int y, const SkPixm |
const LinearGradient4fContext* ctx = |
static_cast<const LinearGradient4fContext*>(state->fCtx); |
- if (dst.info().isLinear()) { |
+ if (!dst.info().gammaCloseToSRGB()) { |
if (ctx->fColorsArePremul) { |
ctx->shadePremulSpan<DstType::L32, ApplyPremul::False>( |
x, y, dst.writable_addr32(x, y), count); |