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

Method schedulePerformUpdates

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

Source from the content-addressed store, hash-verified

361}
362
363void ViewNodeTree::schedulePerformUpdates() {
364 if (!_scheduledPerformUpdates) {
365 _scheduledPerformUpdates = true;
366#if VALDI_DEBUG_TREE_UPDATES
367 scheduleExclusiveUpdate(
368 [this]() { this->performUpdatesIfLayoutSpecsUpToDate(); }, DispatchFunction(), "root_needs_update");
369#else
370 scheduleExclusiveUpdate([this]() { this->performUpdatesIfLayoutSpecsUpToDate(); }, DispatchFunction());
371#endif
372 }
373}
374
375void ViewNodeTree::performUpdatesIfLayoutSpecsUpToDate() {
376 _scheduledPerformUpdates = false;

Callers

nothing calls this directly

Calls 2

DispatchFunctionClass · 0.85

Tested by

no test coverage detected