diff options
Diffstat (limited to 'src/effects/gradients/Sk4fLinearGradient.cpp')
-rw-r--r-- | src/effects/gradients/Sk4fLinearGradient.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/effects/gradients/Sk4fLinearGradient.cpp b/src/effects/gradients/Sk4fLinearGradient.cpp index ca0ca6da60..d22dbff8a1 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); |