| 76 | std::vector<std::shared_ptr<PAGAnimator>> animators = {}; |
| 77 | |
| 78 | void onFrameAvailable() { |
| 79 | locker.lock(); |
| 80 | auto listCopy = animators; |
| 81 | locker.unlock(); |
| 82 | for (auto& animator : listCopy) { |
| 83 | if (animator.use_count() == 1) { |
| 84 | animator->cancelAnimation(); |
| 85 | continue; |
| 86 | } |
| 87 | animator->advance(); |
| 88 | } |
| 89 | } |
| 90 | }; |
| 91 | |
| 92 | std::shared_ptr<PAGAnimator> PAGAnimator::MakeFrom(std::weak_ptr<Listener> listener) { |
nothing calls this directly
no test coverage detected