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

Method flushViewOperations

valdi/src/valdi/android/ViewManager.cpp:288–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288void ViewManager::flushViewOperations(Valdi::Ref<DeferredViewOperations> viewOperations, bool sync) {
289 if (viewOperations == nullptr) {
290 doFlushViewOperations(std::nullopt, sync);
291 } else {
292 auto operations = viewOperations->dequeueOperations();
293 doFlushViewOperations(operations, sync);
294 _viewOperationsPool->release(std::move(viewOperations));
295 }
296}
297
298void ViewManager::doFlushViewOperations(const std::optional<SerializedViewOperations>& operations, bool sync) {
299 VALDI_TRACE("Valdi.flushOperations");

Callers 1

flushMethod · 0.45

Calls 2

dequeueOperationsMethod · 0.80
releaseMethod · 0.45

Tested by

no test coverage detected