actor: Minor optimization to avoid get_preferred_*
authorEmmanuele Bassi <ebassi@linux.intel.com>
Wed, 28 Mar 2012 17:07:06 +0000 (18:07 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Wed, 28 Mar 2012 17:07:06 +0000 (18:07 +0100)
commitff9a503c14eca48868f919101f94428e20780165
tree60781909bdf88b07aa7e680a67b89b220c526325
parentcede56dcdda0bfdd26a155452d05d20e6c974732
actor: Minor optimization to avoid get_preferred_*

When the easing state has a duration of zero milliseconds we can skip
the entire create_transition() call inside set_width() and set_height(),
to avoid what may be a costly call to get_preferred_*.
clutter/clutter-actor.c