| 928 | } |
| 929 | |
| 930 | Ref<ViewTransactionScope> ViewNodeTree::beginViewTransaction() { |
| 931 | _beginViewTransactionCounter++; |
| 932 | |
| 933 | auto viewTransactionScope = _currentViewTransactionScope; |
| 934 | if (viewTransactionScope == nullptr) { |
| 935 | viewTransactionScope = |
| 936 | makeShared<ViewTransactionScope>(_viewManager, _mainThreadManager, _shouldRenderInMainThread); |
| 937 | _currentViewTransactionScope = viewTransactionScope; |
| 938 | } |
| 939 | |
| 940 | if (_beginViewTransactionCounter == 1) { |
| 941 | viewTransactionScope->setRootView(getRootView()); |
| 942 | } |
| 943 | |
| 944 | return viewTransactionScope; |
| 945 | } |
| 946 | |
| 947 | void ViewNodeTree::endViewTransaction(const Ref<ViewTransactionScope>& viewTransactionScope, |
| 948 | bool layoutDidBecomeDirty) { |
nothing calls this directly
no test coverage detected