Index: src/animator/SkDrawExtraPathEffect.cpp |
diff --git a/src/animator/SkDrawExtraPathEffect.cpp b/src/animator/SkDrawExtraPathEffect.cpp |
index e973dbf7955cc1b958925a4a8b28573c812c9ce9..7b991d251ef072d6f55479937fd5a6a6cffaaa37 100644 |
--- a/src/animator/SkDrawExtraPathEffect.cpp |
+++ b/src/animator/SkDrawExtraPathEffect.cpp |
@@ -112,7 +112,7 @@ protected: |
SkApply* apply = (SkApply*) fDraw->addPath; |
apply->refresh(*fMaker); |
apply->activate(*fMaker); |
- apply->interpolate(*fMaker, SkScalarMulRound(distance, 1000)); |
+ apply->interpolate(*fMaker, SkScalarRoundToInt(distance * 1000)); |
drawPath = (SkDrawPath*) apply->getScope(); |
} |
SkMatrix m; |
@@ -125,7 +125,7 @@ protected: |
SkApply* apply = (SkApply*) fDraw->addMatrix; |
apply->refresh(*fMaker); |
apply->activate(*fMaker); |
- apply->interpolate(*fMaker, SkScalarMulRound(distance, 1000)); |
+ apply->interpolate(*fMaker, SkScalarRoundToInt(distance * 1000)); |
matrix = (SkDrawMatrix*) apply->getScope(); |
} |
if (matrix) { |