Commit 28c7f569 authored by shreyas.g@samsung.com's avatar shreyas.g@samsung.com

cc: consistancy of variable usage in

LayerAnimationController::AccumulatePropertyUpdates

The animation value is computed from the animation curve. The general
format used is to get the specific animation curve into one variable 
and then use the getvalue to get the actual animation value. The same
is followed across the file except in AccumulatePropertyUpdates. 
This patch takes cares of the same.

Review URL: https://codereview.chromium.org/440873002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287551 0039d316-1c4b-4281-b951-d872f2087c98
parent 6bcd67da
......@@ -152,8 +152,9 @@ void LayerAnimationController::AccumulatePropertyUpdates(
animation->group(),
Animation::Opacity,
monotonic_time);
event.opacity = animation->curve()->ToFloatAnimationCurve()->GetValue(
trimmed);
const FloatAnimationCurve* float_animation_curve =
animation->curve()->ToFloatAnimationCurve();
event.opacity = float_animation_curve->GetValue(trimmed);
event.is_impl_only = true;
events->push_back(event);
break;
......@@ -165,8 +166,9 @@ void LayerAnimationController::AccumulatePropertyUpdates(
animation->group(),
Animation::Transform,
monotonic_time);
event.transform =
animation->curve()->ToTransformAnimationCurve()->GetValue(trimmed);
const TransformAnimationCurve* transform_animation_curve =
animation->curve()->ToTransformAnimationCurve();
event.transform = transform_animation_curve->GetValue(trimmed);
event.is_impl_only = true;
events->push_back(event);
break;
......@@ -178,8 +180,9 @@ void LayerAnimationController::AccumulatePropertyUpdates(
animation->group(),
Animation::Filter,
monotonic_time);
event.filters = animation->curve()->ToFilterAnimationCurve()->GetValue(
trimmed);
const FilterAnimationCurve* filter_animation_curve =
animation->curve()->ToFilterAnimationCurve();
event.filters = filter_animation_curve->GetValue(trimmed);
event.is_impl_only = true;
events->push_back(event);
break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment