| 945 | void ViewNodeTree::unsafeEndViewTransaction() { |
| 946 | endViewTransaction(_currentViewTransactionScope, false); |
| 947 | } |
| 948 | |
| 949 | Ref<ViewTransactionScope> ViewNodeTree::beginViewTransaction() { |
| 950 | _beginViewTransactionCounter++; |
| 951 | |
| 952 | auto viewTransactionScope = _currentViewTransactionScope; |
| 953 | if (viewTransactionScope == nullptr) { |
| 954 | viewTransactionScope = |
| 955 | makeShared<ViewTransactionScope>(_viewManager, _mainThreadManager, _shouldRenderInMainThread); |
| 956 | _currentViewTransactionScope = viewTransactionScope; |
| 957 | } |
| 958 | |
| 959 | if (_beginViewTransactionCounter == 1) { |
| 960 | viewTransactionScope->setRootView(getRootView()); |
| 961 | } |
| 962 | |
| 963 | return viewTransactionScope; |
nothing calls this directly
no test coverage detected