Chromium Code Reviews
DescriptionBaby steps towards an odeon-like animation system. First victim: Drawer.
This introduces an AnimationPerformance class, which is intended to manage an
animation (or its reverse), with the ability to manually control the timeline
or to apply a force to advance the animation with a diminishing speed.
I'm having trouble fitting the odeon model to Sky. Odeon has a lot of nice
properties, but fundamentally operates on UINodes, which contain all the
properties to be animated. Sky, on the other hand, has no such universal
properties. Instead, each Widget assembles itself how it sees fit.
So my current plan is to let AnimationPerformance own a generic set of
AnimatedVariables. You pass it a bag of things, say position and opacity, as
AnimatedVariables. It updates them based on the animation, and they each have
a way to build a widget based on their current state.
R=abarth@chromium.org
Committed: https://chromium.googlesource.com/external/mojo/+/d3b7661cf2cc8257f4d95cada175c5a9e2119499
Patch Set 1 #Patch Set 2 : ugly attempt at shadows #Patch Set 3 : . #
Total comments: 14
Patch Set 4 : hixie #
Total comments: 2
Patch Set 5 : widget builder #
Total comments: 24
Patch Set 6 : better lerp #
Total comments: 22
Patch Set 7 : abarth and hixie #
Total comments: 8
Patch Set 8 : abarth #
Messages
Total messages: 16 (2 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||