[Tizen] Sort Animator only if required. 49/292449/2
authorEunki, Hong <eunkiki.hong@samsung.com>
Mon, 27 Feb 2023 13:09:34 +0000 (22:09 +0900)
committerseungho baek <sbsh.baek@samsung.com>
Mon, 8 May 2023 08:49:34 +0000 (17:49 +0900)
commita8d374a446eae432764fca50e6ec2b90c6c7329d
tree7bab7b02c13f226631633aa4300dfd763729f3b5
parent429de948d5c4f2b90196b5bdae3508b9bb7b4960
[Tizen] 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