Bug 1361663 - Part 1: Use double instead of float for the progress of interpolation. r=birtles

We get the progress as |double|, and then pass it to a function by a |float|
type, and then finally cast it back to |double| for the interpolation.
We should avoid casting it back and forth, so change the function argument to
use |double| type for the progress.

MozReview-Commit-ID: 7QzfVBC7hSt
This commit is contained in:
Boris Chiou
2017-05-22 13:35:15 +08:00
parent 6ae7120459
commit d6fceef5a5

View File

@@ -97,7 +97,7 @@ CompositorAnimationStorage::SetAnimations(uint64_t aId, const AnimationArray& aV
}
static StyleAnimationValue
SampleValue(float aPortion, const layers::Animation& aAnimation,
SampleValue(double aPortion, const layers::Animation& aAnimation,
const StyleAnimationValueCompositePair& aStart,
const StyleAnimationValueCompositePair& aEnd,
const StyleAnimationValue& aLastValue,