(UpdateManager) Fire animation notifications ONLY when scene is actually updated 87/24087/1
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 24 Jun 2014 12:53:25 +0000 (21:53 +0900)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 8 Jul 2014 13:15:36 +0000 (14:15 +0100)
commitfb37dc3c0281c81afad7ee75c581b0e5ba7c132d
treeba6f7a3f6f25f8fee954415b344c5b4a27f94934
parent323b3b4f2e48659330dc66802ec10f0718a4f534
(UpdateManager) Fire animation notifications ONLY when scene is actually updated

[problem]     Timing problem where animation finsihed callbacks are emitted before the scene has
              been updated.
[cause]       We add messages to the event-queue before we've updated the scene. The queues can
              be swapped while we're still updating and the finished callback can be then fired.
              Any attempt to get current values in this callback will be from the previous frame.
[solution]    Delay adding animation-finished messages to the queue till just before update ends.

Change-Id: I3c610e5139e1bfe32873cf3f85474ab7d61ed343
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
dali/internal/update/manager/update-manager.cpp