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

Method GetRegionBase

libs/drape/texture_manager.cpp:243–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243void TextureManager::GetRegionBase(ref_ptr<Texture> tex, BaseRegion & region, Texture::Key const & key)
244{
245 bool isNew = false;
246 region.SetResourceInfo(tex != nullptr ? tex->FindResource(key, isNew) : nullptr);
247 region.SetTexture(tex);
248 ASSERT(region.IsValid(), ());
249 if (isNew)
250 m_nothingToUpload.clear();
251}
252
253uint32_t TextureManager::GetNumberOfGlyphsNotInGroup(std::vector<text::GlyphMetrics> const & glyphs,
254 GlyphGroup const & group)

Callers

nothing calls this directly

Calls 6

ASSERTFunction · 0.85
SetResourceInfoMethod · 0.80
FindResourceMethod · 0.45
SetTextureMethod · 0.45
IsValidMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected