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

Method notifyView

valdi/src/valdi/runtime/Context/ViewNodeAssetHandler.cpp:219–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219void ViewNodeAssetHandler::notifyView() {
220 if (_view == nullptr) {
221 return;
222 }
223
224 auto viewNodeTree = _viewNodeTree.lock();
225 if (viewNodeTree == nullptr) {
226 return;
227 }
228
229 _viewNeedsUpdate = false;
230
231 auto viewNode = _viewNode.lock();
232 bool shouldFlip = false;
233 if (_flipOnRtl && viewNode != nullptr && viewNode->isRightToLeft()) {
234 shouldFlip = true;
235 }
236
237 viewNodeTree->getCurrentViewTransactionScope().transaction().setViewLoadedAsset(_view, _loadedAsset, shouldFlip);
238}
239
240} // namespace Valdi

Callers

nothing calls this directly

Calls 3

lockMethod · 0.45
isRightToLeftMethod · 0.45
setViewLoadedAssetMethod · 0.45

Tested by

no test coverage detected