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

Method scheduleOnNextDraw

valdi/src/valdi/android/AndroidViewTransaction.cpp:163–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163void AndroidViewTransaction::scheduleOnNextDraw(const Valdi::Ref<Valdi::View>& rootView,
164 Valdi::DispatchFunction callback) {
165 PendingOnNextDrawCallback pendingCallback;
166 pendingCallback.rootView = rootView;
167 pendingCallback.callbackHandle = reinterpret_cast<int64_t>(new Valdi::DispatchFunction(std::move(callback)));
168 _pendingOnNextDrawCallbacks.emplace_back(std::move(pendingCallback));
169}
170
171void AndroidViewTransaction::executeInTransactionThread(Valdi::DispatchFunction executeFn) {
172 executeFn();

Callers 1

TEST_PFunction · 0.45

Calls

no outgoing calls

Tested by 1

TEST_PFunction · 0.36