MCPcopy Create free account
hub / github.com/Snapchat/Valdi / endViewTransaction

Method endViewTransaction

valdi/src/valdi/runtime/Context/ViewNodeTree.cpp:947–960  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

945void ViewNodeTree::unsafeEndViewTransaction() {
946 endViewTransaction(_currentViewTransactionScope, false);
947}
948
949Ref<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;

Callers

nothing calls this directly

Calls 2

submitMethod · 0.45

Tested by

no test coverage detected