| 117 | } |
| 118 | |
| 119 | void DeferredViewTransaction::snapshotView(const Ref<View>& view, Function<void(Result<BytesView>)> cb) { |
| 120 | enqueue([view, cb = std::move(cb)](IViewTransaction& transaction) { transaction.snapshotView(view, cb); }); |
| 121 | } |
| 122 | |
| 123 | void DeferredViewTransaction::flushAnimator(const Ref<Animator>& animator, const Value& completionCallback) { |
| 124 | enqueue([=](IViewTransaction& transaction) { transaction.flushAnimator(animator, completionCallback); }); |