| 296 | } |
| 297 | |
| 298 | void ViewManager::doFlushViewOperations(const std::optional<SerializedViewOperations>& operations, bool sync) { |
| 299 | VALDI_TRACE("Valdi.flushOperations"); |
| 300 | |
| 301 | if (operations) { |
| 302 | const auto& buffer = operations.value().buffer; |
| 303 | const auto& attachedValues = operations.value().attachedValues; |
| 304 | auto byteBuffer = ValdiAndroid::toByteBuffer( |
| 305 | getEnv(), const_cast<void*>(reinterpret_cast<const void*>(buffer->data())), buffer->size()); |
| 306 | auto objectJArray = ValdiAndroid::toJavaObject(getEnv(), attachedValues); |
| 307 | |
| 308 | _performViewOperationsMethod.call(toObject(), byteBuffer, objectJArray, sync); |
| 309 | } else { |
| 310 | _performViewOperationsMethod.call(toObject(), JavaObject(getEnv()), ObjectArray(getEnv()), sync); |
| 311 | } |
| 312 | } |
| 313 | |
| 314 | Valdi::Ref<Valdi::IViewTransaction> ViewManager::createViewTransaction( |
| 315 | const Valdi::Ref<Valdi::MainThreadManager>& mainThreadManager, bool shouldDefer) { |
nothing calls this directly
no test coverage detected