Sort Animator only if required. 38/289038/7
authorEunki, Hong <eunkiki.hong@samsung.com>
Mon, 27 Feb 2023 13:09:34 +0000 (22:09 +0900)
committerEunki Hong <eunkiki.hong@samsung.com>
Mon, 27 Feb 2023 16:48:00 +0000 (01:48 +0900)
commit10bd6b9d6d1df8d530de4173d48c4182492495b0
tree5ccc77c5cc6b0fcc1300950e98f4b0e2e556c01c
parente4d22de85c81987aa749fb21dca87e88ed170509
Sort Animator only if required.

Previously, we sort mConnectorTargetValues every Play() API.
Even if we don't need to sort it.

Now, make we sort that container only if last inserted value is bigger than
latest thing, and reset the flag if we sort.

Change-Id: Ia2ba07df3db5a2a0d6d89b0ef2854c5fc655fb2a
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali/internal/event/animation/animation-impl.cpp
dali/internal/event/animation/animation-impl.h
dali/internal/update/animation/scene-graph-animation.cpp
dali/internal/update/animation/scene-graph-animation.h