Optimize animated position calculations
Animated spatial properties may describe curved motion, but most often
are just linear. Utilize this fact by storing such cases as lines,
instead of degenerate cubic curves, in the internal path object. This
allows simpler computation for the animation.
Also enable caching on the path object, saving much re-computation
during animation.
Change-Id: Iae9402f8f909ee28ef37581b34487e3ffe0d2862
Pick-to: 6.10
Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>