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

Method setViewport

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

Source from the content-addressed store, hash-verified

331}
332
333void ViewNodeTree::setViewport(std::optional<Frame> viewport) {
334 auto lockGuard = lock();
335 if (_viewport != viewport) {
336 _viewport = viewport;
337 schedulePerformUpdates();
338 }
339}
340
341std::optional<Frame> ViewNodeTree::getViewport() const {
342 auto lockGuard = lock();

Callers 2

TESTFunction · 0.80
setVisibleViewportMethod · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64