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

Method destroyTree

valdi/test/benchmark/ViewNode_benchmark.cpp:39–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 }
38
39 void destroyTree(Ref<ViewNodeTree>& tree) {
40 auto rootViewNode = tree->getRootViewNode();
41 if (rootViewNode != nullptr) {
42 tree->removeViewNode(rootViewNode->getRawId());
43 rootViewNode = nullptr;
44 }
45 tree = nullptr;
46 }
47
48 StandaloneMainQueue mainQueue;
49 MainThreadManager mainThreadManager;

Callers 2

InitialRenderFunction · 0.80
DestroyTreeFunction · 0.80

Calls 3

removeViewNodeMethod · 0.80
getRawIdMethod · 0.80
getRootViewNodeMethod · 0.45

Tested by

no test coverage detected