animation: Split spring setup out of weston_view_animation_run()
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Mon, 14 Apr 2014 12:48:05 +0000 (15:48 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 17 Apr 2014 05:33:44 +0000 (22:33 -0700)
commitf5cc2b560f91d9646841670a41a3a742f540633b
tree971adf4253ac09697fd75b78381f0c2bff2e856d
parent06f2fa1a609f5c263c7b8ea3cb8a967f9ecde338
animation: Split spring setup out of weston_view_animation_run()

All the animations override at least one parameter of the spring that
is set during the creation of the animation. Some need to do the whole
setup again.

This patch changes the initialization of a view animation to a three
step process. First, the animation is created. Then the caller sets up
the spring and calls weston_view_animation_run() to apply the effect of
the animation for the first animation frame.
src/animation.c