| 161 | } |
| 162 | |
| 163 | void AndroidViewTransaction::scheduleOnNextDraw(const Valdi::Ref<Valdi::View>& rootView, |
| 164 | Valdi::DispatchFunction callback) { |
| 165 | PendingOnNextDrawCallback pendingCallback; |
| 166 | pendingCallback.rootView = rootView; |
| 167 | pendingCallback.callbackHandle = reinterpret_cast<int64_t>(new Valdi::DispatchFunction(std::move(callback))); |
| 168 | _pendingOnNextDrawCallbacks.emplace_back(std::move(pendingCallback)); |
| 169 | } |
| 170 | |
| 171 | void AndroidViewTransaction::executeInTransactionThread(Valdi::DispatchFunction executeFn) { |
| 172 | executeFn(); |