| 1209 | } |
| 1210 | |
| 1211 | bool 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 | |
| 1232 | void FrontendRenderer::OnCompassTapped() |
| 1233 | { |
nothing calls this directly
no test coverage detected