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

Method CheckTileGenerations

libs/drape_frontend/frontend_renderer.cpp:1211–1230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1209}
1210
1211bool FrontendRenderer::CheckTileGenerations(TileKey const & tileKey)
1212{
1213 bool const result = (tileKey.m_generation >= m_maxGeneration);
1214
1215 if (tileKey.m_generation > m_maxGeneration)
1216 m_maxGeneration = tileKey.m_generation;
1217
1218 if (tileKey.m_userMarksGeneration > m_maxUserMarksGeneration)
1219 m_maxUserMarksGeneration = tileKey.m_userMarksGeneration;
1220
1221 RemoveRenderGroupsLater([&tileKey](drape_ptr<RenderGroup> const & group)
1222 {
1223 auto const & groupKey = group->GetTileKey();
1224 return groupKey == tileKey &&
1225 (groupKey.m_generation < tileKey.m_generation ||
1226 (group->IsUserMark() && groupKey.m_userMarksGeneration < tileKey.m_userMarksGeneration));
1227 });
1228
1229 return result;
1230}
1231
1232void FrontendRenderer::OnCompassTapped()
1233{

Callers

nothing calls this directly

Calls 1

IsUserMarkMethod · 0.80

Tested by

no test coverage detected