| 23 | ViewNodesFrameObserver::~ViewNodesFrameObserver() = default; |
| 24 | |
| 25 | void ViewNodesFrameObserver::flush() { |
| 26 | if (_values == nullptr) { |
| 27 | flushCompleteCallbacks(); |
| 28 | return; |
| 29 | } |
| 30 | auto values = std::move(_values); |
| 31 | |
| 32 | if (_callback != nullptr) { |
| 33 | auto param = Value(makeShared<ValueTypedArray>(TypedArrayType::Float64Array, values->toBytesView())); |
| 34 | (*_callback)({std::move(param)}); |
| 35 | } |
| 36 | flushCompleteCallbacks(); |
| 37 | } |
| 38 | |
| 39 | void ViewNodesFrameObserver::flushCompleteCallbacks() { |
| 40 | auto callbacks = std::move(_layoutCompletedCallbacks); |
nothing calls this directly
no test coverage detected