| 181 | } |
| 182 | |
| 183 | bool PostprocessRenderer::IsEnabled() const |
| 184 | { |
| 185 | // Do not use post processing in routing following mode by energy-saving reasons. |
| 186 | // For Metal rendering to the texture is more efficient, |
| 187 | // since nextDrawable will be requested later. |
| 188 | |
| 189 | if (m_apiVersion != dp::ApiVersion::Metal && m_isRouteFollowingActive) |
| 190 | return false; |
| 191 | |
| 192 | return IsSupported(m_mainFramebuffer); |
| 193 | } |
| 194 | |
| 195 | void PostprocessRenderer::SetEffectEnabled(ref_ptr<dp::GraphicsContext> context, Effect effect, bool enabled) |
| 196 | { |
nothing calls this directly
no test coverage detected