Index: src/effects/gradients/SkTwoPointConicalGradient.cpp |
diff --git a/src/effects/gradients/SkTwoPointConicalGradient.cpp b/src/effects/gradients/SkTwoPointConicalGradient.cpp |
index 918f2e06ddea634c4f873af8e5659e82229783c6..b7c95bc809c1264fb4321908eccfa42b577911b8 100644 |
--- a/src/effects/gradients/SkTwoPointConicalGradient.cpp |
+++ b/src/effects/gradients/SkTwoPointConicalGradient.cpp |
@@ -261,10 +261,9 @@ void SkTwoPointConicalGradient::TwoPointConicalGradientContext::shadeSpan( |
SkScalar dy, fy = srcPt.fY; |
if (fDstToIndexClass == kFixedStepInX_MatrixClass) { |
- SkFixed fixedX, fixedY; |
- (void)fDstToIndex.fixedStepInX(SkIntToScalar(y), &fixedX, &fixedY); |
- dx = SkFixedToScalar(fixedX); |
- dy = SkFixedToScalar(fixedY); |
+ const auto step = fDstToIndex.fixedStepInX(SkIntToScalar(y)); |
+ dx = step.fX; |
+ dy = step.fY; |
} else { |
SkASSERT(fDstToIndexClass == kLinear_MatrixClass); |
dx = fDstToIndex.getScaleX(); |