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

Method submit

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

Source from the content-addressed store, hash-verified

37}
38
39void ViewTransactionScope::submit() {
40 if (_next != nullptr) {
41 _next->submit();
42 }
43
44 auto transaction = std::move(_transaction);
45 if (transaction != nullptr) {
46 if (_rootView != nullptr) {
47 transaction->didUpdateRootView(_rootView, _layoutDidBecomeDirty);
48 }
49
50 transaction->flush(/* sync */ false);
51 }
52
53 _layoutDidBecomeDirty = false;
54}
55
56void ViewTransactionScope::flushNow(bool sync) {
57 if (_next != nullptr) {

Callers 5

endViewTransactionMethod · 0.45
measureMethod · 0.45
snapshotMethod · 0.45
performRequestMethod · 0.45
loadBitmapAssetMethod · 0.45

Calls 2

flushMethod · 0.65
didUpdateRootViewMethod · 0.45

Tested by

no test coverage detected