diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-12-18 15:49:32 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-12-18 15:49:32 +0000 |
commit | 8015cdd8fa5694e52b70e728bcdc6b35d739b819 (patch) | |
tree | 1e698fc094a2228a438e4a8e6c0ae21964c7aef5 /src/utils/SkInterpolator.cpp | |
parent | 83aaf88b999306b2361ee01b0c6a7c345f2242a2 (diff) |
replace SkScalarMulRound(a,b) with SkScalarRountToInt(a*b)
BUG=
R=sugoi@google.com
Review URL: https://codereview.chromium.org/111393010
git-svn-id: http://skia.googlecode.com/svn/trunk@12740 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/utils/SkInterpolator.cpp')
-rw-r--r-- | src/utils/SkInterpolator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/SkInterpolator.cpp b/src/utils/SkInterpolator.cpp index 595e46402d..dd884b881c 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; |