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

Method dequeueOperations

valdi/src/valdi/android/DeferredViewOperations.cpp:180–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180std::optional<SerializedViewOperations> DeferredViewOperations::dequeueOperations() {
181 if (_buffer.empty()) {
182 return std::nullopt;
183 }
184
185 SerializedViewOperations operations;
186 operations.buffer = &_buffer;
187 operations.attachedValues = _attachedValues.build();
188
189 return {std::move(operations)};
190}
191
192void DeferredViewOperations::clear() {
193 _lastAnimator = nullptr;

Callers 1

flushViewOperationsMethod · 0.80

Calls 2

emptyMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected