| 164 | } |
| 165 | |
| 166 | bool RenderGroupComparator::operator()(drape_ptr<RenderGroup> const & l, drape_ptr<RenderGroup> const & r) |
| 167 | { |
| 168 | m_pendingOnDeleteFound |= (l->IsPendingOnDelete() || r->IsPendingOnDelete()); |
| 169 | bool const lCanBeDeleted = l->CanBeDeleted(); |
| 170 | bool const rCanBeDeleted = r->CanBeDeleted(); |
| 171 | |
| 172 | if (rCanBeDeleted == lCanBeDeleted) |
| 173 | { |
| 174 | auto const & lState = l->GetState(); |
| 175 | auto const & rState = r->GetState(); |
| 176 | auto const lDepth = GetDepthLayer(lState); |
| 177 | auto const rDepth = GetDepthLayer(rState); |
| 178 | if (lDepth != rDepth) |
| 179 | return lDepth < rDepth; |
| 180 | |
| 181 | return lState < rState; |
| 182 | } |
| 183 | return rCanBeDeleted; |
| 184 | } |
| 185 | |
| 186 | UserMarkRenderGroup::UserMarkRenderGroup(dp::RenderState const & state, TileKey const & tileKey) : TBase(state, tileKey) |
| 187 | { |
nothing calls this directly
no test coverage detected