| 221 | } |
| 222 | |
| 223 | void Batcher::FinalizeBucket(ref_ptr<GraphicsContext> context, RenderState const & state) |
| 224 | { |
| 225 | auto const it = m_buckets.find(state); |
| 226 | CHECK(it != m_buckets.end(), ("Have no bucket for finalize with given state")); |
| 227 | drape_ptr<RenderBucket> bucket = std::move(it->second); |
| 228 | m_buckets.erase(it); |
| 229 | |
| 230 | bucket->GetBuffer()->Preflush(context); |
| 231 | m_flushInterface(state, std::move(bucket)); |
| 232 | } |
| 233 | |
| 234 | void Batcher::Flush(ref_ptr<GraphicsContext> context) |
| 235 | { |