| Index: cc/trees/layer_tree_host_unittest_animation.cc
|
| diff --git a/cc/trees/layer_tree_host_unittest_animation.cc b/cc/trees/layer_tree_host_unittest_animation.cc
|
| index cfd8a1489af4a06f045b1b817c18b83ed721c852..cb816c159827e4d905e946f96d40171213526c98 100644
|
| --- a/cc/trees/layer_tree_host_unittest_animation.cc
|
| +++ b/cc/trees/layer_tree_host_unittest_animation.cc
|
| @@ -505,10 +505,10 @@ class LayerTreeHostAnimationTestAddAnimationWithTimingFunction
|
| const FloatAnimationCurve* curve =
|
| animation->curve()->ToFloatAnimationCurve();
|
| float start_opacity = curve->GetValue(0.0);
|
| - float end_opacity = curve->GetValue(curve->Duration());
|
| + float end_opacity = curve->GetValue(curve->Duration().InSecondsF());
|
| float linearly_interpolated_opacity =
|
| 0.25f * end_opacity + 0.75f * start_opacity;
|
| - double time = curve->Duration() * 0.25;
|
| + double time = curve->Duration().InSecondsF() * 0.25;
|
| // If the linear timing function associated with this animation was not
|
| // picked up, then the linearly interpolated opacity would be different
|
| // because of the default ease timing function.
|
|
|