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

Method FindResource

libs/drape/dynamic_texture.hpp:18–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16 ~DynamicTexture() override { ASSERT(m_indexer == nullptr, ()); }
17
18 ref_ptr<ResourceInfo> FindResource(Key const & key, bool & newResource) override
19 {
20 ASSERT(m_indexer != nullptr, ());
21 if (key.GetType() != TResourceType)
22 return nullptr;
23
24 return m_indexer->MapResource(static_cast<TResourceKey const &>(key), newResource);
25 }
26
27 void Create(ref_ptr<GraphicsContext> context, Params const & params) override
28 {

Callers

nothing calls this directly

Calls 3

ASSERTFunction · 0.85
GetTypeMethod · 0.45
MapResourceMethod · 0.45

Tested by

no test coverage detected