| 41 | } |
| 42 | |
| 43 | void AndroidViewTransaction::didUpdateRootView(const Valdi::Ref<Valdi::View>& view, bool layoutDidBecomeDirty) { |
| 44 | getViewOperations().enqueueEndRenderingView(view, layoutDidBecomeDirty); |
| 45 | |
| 46 | for (const auto& pendingCallback : _pendingOnNextDrawCallbacks) { |
| 47 | auto callbackRootView = pendingCallback.rootView != nullptr ? pendingCallback.rootView : view; |
| 48 | if (callbackRootView == nullptr) { |
| 49 | delete reinterpret_cast<Valdi::DispatchFunction*>(pendingCallback.callbackHandle); |
| 50 | continue; |
| 51 | } |
| 52 | |
| 53 | getViewOperations().enqueueOnNextDraw(callbackRootView, pendingCallback.callbackHandle); |
| 54 | } |
| 55 | |
| 56 | _pendingOnNextDrawCallbacks.clear(); |
| 57 | } |
| 58 | |
| 59 | void AndroidViewTransaction::moveViewToTree(const Valdi::Ref<Valdi::View>& view, |
| 60 | Valdi::ViewNodeTree* viewNodeTree, |