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

Method snapshotView

valdi/src/valdi/runtime/Views/DeferredViewTransaction.cpp:119–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119void DeferredViewTransaction::snapshotView(const Ref<View>& view, Function<void(Result<BytesView>)> cb) {
120 enqueue([view, cb = std::move(cb)](IViewTransaction& transaction) { transaction.snapshotView(view, cb); });
121}
122
123void DeferredViewTransaction::flushAnimator(const Ref<Animator>& animator, const Value& completionCallback) {
124 enqueue([=](IViewTransaction& transaction) { transaction.flushAnimator(animator, completionCallback); });

Callers 1

createSnapshotMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected