MCPcopy Create free account
hub / github.com/comaps/comaps / SetPosteffectEnabled

Method SetPosteffectEnabled

libs/drape_frontend/drape_engine.cpp:836–847  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

834}
835
836void DrapeEngine::SetPosteffectEnabled(PostprocessRenderer::Effect effect, bool enabled)
837{
838 if (effect == df::PostprocessRenderer::Antialiasing)
839 {
840 LOG(LINFO, ("Antialiasing is", (enabled ? "enabled" : "disabled")));
841 settings::Set(dp::kSupportedAntialiasing, enabled);
842 }
843
844 m_threadCommutator->PostMessage(ThreadsCommutator::RenderThread,
845 make_unique_dp<SetPosteffectEnabledMessage>(effect, enabled),
846 MessagePriority::Normal);
847}
848
849void DrapeEngine::RunFirstLaunchAnimation()
850{

Callers 4

mainFunction · 0.80
AntialiasingOnMethod · 0.80
AntialiasingOffMethod · 0.80

Calls 2

SetFunction · 0.50
PostMessageMethod · 0.45

Tested by

no test coverage detected