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

Method FinalizeBucket

libs/drape/batcher.cpp:223–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223void 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
234void Batcher::Flush(ref_ptr<GraphicsContext> context)
235{

Callers

nothing calls this directly

Calls 5

PreflushMethod · 0.80
findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45
GetBufferMethod · 0.45

Tested by

no test coverage detected