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

Method MapResources

libs/drape/font_texture.cpp:93–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93std::vector<ref_ptr<Texture::ResourceInfo>> GlyphIndex::MapResources(TGlyphs const & keys, bool & hasNewResources)
94{
95 std::vector<ref_ptr<Texture::ResourceInfo>> info;
96 info.reserve(keys.size());
97
98 hasNewResources = false;
99 for (auto const & glyphKey : keys)
100 {
101 bool newResource = false;
102 auto result = MapResource(glyphKey, newResource);
103 hasNewResources |= newResource;
104 info.push_back(std::move(result));
105 }
106
107 return info;
108}
109
110ref_ptr<Texture::ResourceInfo> GlyphIndex::MapResource(GlyphFontAndId const & key, bool & newResource)
111{

Callers

nothing calls this directly

Calls 3

reserveMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected