| 601 | void Runtime::setAutoRenderDisabled(bool autoRenderDisabled) { |
| 602 | auto oldValue = _autoRenderDisabled.exchange(autoRenderDisabled); |
| 603 | |
| 604 | if (!autoRenderDisabled && oldValue) { |
| 605 | for (const auto& context : _contextManager.getAllContexts()) { |
| 606 | if (context->hasPendingRenderRequests()) { |
| 607 | getMainThreadManager().dispatch(context, [context]() { context->flushRenderRequests(); }); |
| 608 | } |
| 609 | } |
| 610 | } |
| 611 | } |
| 612 | |
| 613 | void Runtime::receivedRenderRequest(const Ref<RenderRequest>& renderRequest) { |
| 614 | auto context = _contextManager.getContext(renderRequest->getContextId()); |
| 615 | if (context == nullptr) { |
| 616 | return; |
| 617 | } |
| 618 |
no test coverage detected