Index: src/effects/gradients/SkRadialGradient.cpp |
diff --git a/src/effects/gradients/SkRadialGradient.cpp b/src/effects/gradients/SkRadialGradient.cpp |
index 7e7ac7a4069b0ed7b438b64f0ebfdac2df227807..020c25ec46cd95005c8644e29c84b5aa72733a91 100644 |
--- a/src/effects/gradients/SkRadialGradient.cpp |
+++ b/src/effects/gradients/SkRadialGradient.cpp |
@@ -206,11 +206,9 @@ void SkRadialGradient::RadialGradientContext::shadeSpan(int x, int y, |
SkScalar sdy = fDstToIndex.getSkewY(); |
if (fDstToIndexClass == kFixedStepInX_MatrixClass) { |
- SkFixed storage[2]; |
- (void)fDstToIndex.fixedStepInX(SkIntToScalar(y), |
- &storage[0], &storage[1]); |
- sdx = SkFixedToScalar(storage[0]); |
- sdy = SkFixedToScalar(storage[1]); |
+ const auto step = fDstToIndex.fixedStepInX(SkIntToScalar(y)); |
+ sdx = step.fX; |
+ sdy = step.fY; |
} else { |
SkASSERT(fDstToIndexClass == kLinear_MatrixClass); |
} |