Index: src/utils/SkInterpolator.cpp |
diff --git a/src/utils/SkInterpolator.cpp b/src/utils/SkInterpolator.cpp |
index 595e46402da90e6d6800a4878805bb38b1db1444..dd884b881cc42121a8ac535fe3418917a87957dd 100644 |
--- a/src/utils/SkInterpolator.cpp |
+++ b/src/utils/SkInterpolator.cpp |
@@ -77,11 +77,11 @@ SkInterpolatorBase::Result SkInterpolatorBase::timeToT(SkMSec time, SkScalar* T, |
this->getDuration(&startTime, &endTime); |
SkMSec totalTime = endTime - startTime; |
SkMSec offsetTime = time - startTime; |
- endTime = SkScalarMulFloor(fRepeat, totalTime); |
+ endTime = SkScalarFloorToInt(fRepeat * totalTime); |
if (offsetTime >= endTime) { |
SkScalar fraction = SkScalarFraction(fRepeat); |
offsetTime = fraction == 0 && fRepeat > 0 ? totalTime : |
- (SkMSec) SkScalarMulFloor(fraction, totalTime); |
+ (SkMSec) SkScalarFloorToInt(fraction * totalTime); |
result = kFreezeEnd_Result; |
} else { |
int mirror = fFlags & kMirror; |