Index: src/effects/gradients/Sk4fGradientPriv.h |
diff --git a/src/effects/gradients/Sk4fGradientPriv.h b/src/effects/gradients/Sk4fGradientPriv.h |
index ae6fe7ce466acd7197aabddfc5cf2fc50273a02e..68e95a63d9ff7dda846dc7eecc3a8c71967f23b1 100644 |
--- a/src/effects/gradients/Sk4fGradientPriv.h |
+++ b/src/effects/gradients/Sk4fGradientPriv.h |
@@ -143,11 +143,11 @@ struct DstTraits<DstType::F16, premul> { |
} |
static void store(const Sk4f& c, Type* dst) { |
- *dst = SkFloatToHalf_01(PM::apply(c)); |
+ *dst = SkFloatToHalf_finite(PM::apply(c)); |
} |
static void store(const Sk4f& c, Type* dst, int n) { |
- sk_memset64(dst, SkFloatToHalf_01(PM::apply(c)), n); |
+ sk_memset64(dst, SkFloatToHalf_finite(PM::apply(c)), n); |
} |
static void store4x(const Sk4f& c0, const Sk4f& c1, |