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

Method willEnqueueViewToPool

valdi/src/valdi/android/AndroidViewTransaction.cpp:127–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127void AndroidViewTransaction::willEnqueueViewToPool(const Valdi::Ref<Valdi::View>& view,
128 Valdi::Function<void(Valdi::View&)> onEnqueue) {
129 if (!Valdi::castOrNull<AndroidViewHolder>(view)->isRecyclable()) {
130 return;
131 }
132
133 getViewOperations().enqueueAddedToPool(view);
134
135 onEnqueue(*view);
136}
137
138void AndroidViewTransaction::snapshotView(const Valdi::Ref<Valdi::View>& view,
139 Valdi::Function<void(Valdi::Result<Valdi::BytesView>)> cb) {

Callers

nothing calls this directly

Calls 2

enqueueAddedToPoolMethod · 0.80
isRecyclableMethod · 0.45

Tested by

no test coverage detected