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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user