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

Method createTransaction

valdi/src/valdi/runtime/Views/ViewTransactionScope.cpp:78–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78void ViewTransactionScope::createTransaction() {
79 SC_ASSERT(_viewManager != nullptr);
80 _transaction = _viewManager->createViewTransaction(_mainThreadManager, _useMainThreadTransaction);
81 if (_rootView != nullptr) {
82 _transaction->willUpdateRootView(_rootView);
83 }
84}
85
86ViewTransactionScope& ViewTransactionScope::withViewManager(IViewManager& viewManager) {
87 if (_viewManager == &viewManager) {

Callers 1

HelpersFunction · 0.80

Calls 2

createViewTransactionMethod · 0.45
willUpdateRootViewMethod · 0.45

Tested by

no test coverage detected