| 32 | ValdiAnimator::~ValdiAnimator() = default; |
| 33 | |
| 34 | void ValdiAnimator::appendAnimation(const Ref<Layer>& view, const Ref<IAnimation>& animation, const String& key) { |
| 35 | PendingAnimation pendingAnimation; |
| 36 | pendingAnimation.view = view; |
| 37 | pendingAnimation.animation = animation; |
| 38 | pendingAnimation.key = key; |
| 39 | |
| 40 | _pendingAnimations.emplace_back(std::move(pendingAnimation)); |
| 41 | } |
| 42 | |
| 43 | void ValdiAnimator::flushAnimations(const Valdi::Value& completion) { |
| 44 | auto group = Valdi::makeShared<Valdi::AsyncGroup>(); |