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

Method getViewAndDisablePooling

valdi/src/valdi/runtime/Context/ViewNode.cpp:199–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197
198const Ref<View>& ViewNode::getView() const {
199 return _view;
200}
201
202Ref<View> ViewNode::getViewAndDisablePooling() const {
203 if (_view != nullptr) {
204 _view->setCanBeReused(false);
205 }
206
207 return _view;
208}

Callers 4

getViewForIdFunction · 0.80
getViewForNodePathMethod · 0.80
getRootViewMethod · 0.80

Calls 1

setCanBeReusedMethod · 0.80

Tested by 1

getViewForIdFunction · 0.64