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

Method Flush

libs/drape/batcher.cpp:234–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234void Batcher::Flush(ref_ptr<GraphicsContext> context)
235{
236 ASSERT(m_flushInterface != NULL, ());
237 std::for_each(m_buckets.begin(), m_buckets.end(), [this, context](TBuckets::value_type & bucket)
238 {
239 ASSERT(bucket.second != nullptr, ());
240 bucket.second->GetBuffer()->Preflush(context);
241 m_flushInterface(bucket.first, std::move(bucket.second));
242 });
243
244 m_buckets.clear();
245}
246
247template <typename TBatcher, typename... TArgs>
248IndicesRange Batcher::InsertPrimitives(ref_ptr<GraphicsContext> context, RenderState const & state,

Callers 4

WriteDataMethod · 0.45
UNIT_TESTFunction · 0.45
UpdateDynamicTexturesMethod · 0.45
SaveResumeChunksMethod · 0.45

Calls 6

ASSERTFunction · 0.85
PreflushMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
GetBufferMethod · 0.45
clearMethod · 0.45

Tested by 1

UNIT_TESTFunction · 0.36