Index: src/effects/gradients/SkRadialGradient.cpp |
diff --git a/src/effects/gradients/SkRadialGradient.cpp b/src/effects/gradients/SkRadialGradient.cpp |
index de0f764a56ce8f99663666c99a45303664c36322..a9cdb2a91296971a198d2b894ee8d8e3dfbba935 100644 |
--- a/src/effects/gradients/SkRadialGradient.cpp |
+++ b/src/effects/gradients/SkRadialGradient.cpp |
@@ -306,8 +306,8 @@ void shadeSpan_radial_clamp2(SkScalar sfx, SkScalar sdx, SkScalar sfy, SkScalar |
R = R + dR; |
dR = dR + ddR; |
- int fi[4]; |
- dist.castTrunc().store(fi); |
+ uint8_t fi[4]; |
+ dist.toBytes(fi); |
for (int i = 0; i < 4; i++) { |
*dstC++ = cache[toggle + fi[i]]; |
@@ -318,8 +318,8 @@ void shadeSpan_radial_clamp2(SkScalar sfx, SkScalar sdx, SkScalar sfy, SkScalar |
if (count) { |
Sk4f dist = Sk4f::Min(fast_sqrt(R), max); |
- int fi[4]; |
- dist.castTrunc().store(fi); |
+ uint8_t fi[4]; |
+ dist.toBytes(fi); |
for (int i = 0; i < count; i++) { |
*dstC++ = cache[toggle + fi[i]]; |
toggle = next_dither_toggle(toggle); |