| 1694 | } |
| 1695 | |
| 1696 | void FrontendRenderer::RenderEmptyFrame() |
| 1697 | { |
| 1698 | TRACE_SECTION("[drape] RenderEmptyFrame"); |
| 1699 | CHECK(m_context != nullptr, ()); |
| 1700 | if (!m_context->Validate()) |
| 1701 | return; |
| 1702 | |
| 1703 | if (!m_context->BeginRendering()) |
| 1704 | return; |
| 1705 | |
| 1706 | m_context->SetFramebuffer(nullptr /* default */); |
| 1707 | auto const c = dp::Color(drule::rules().GetBgColor(1 /* scale */), 255); |
| 1708 | m_context->SetClearColor(c); |
| 1709 | m_context->Clear(dp::ClearBits::ColorBit, dp::ClearBits::ColorBit /* storeBits */); |
| 1710 | m_context->ApplyFramebuffer("Empty frame"); |
| 1711 | m_viewport.Apply(m_context); |
| 1712 | m_context->EndRendering(); |
| 1713 | m_context->Present(); |
| 1714 | } |
| 1715 | |
| 1716 | void FrontendRenderer::RenderFrame() |
| 1717 | { |
nothing calls this directly
no test coverage detected