MCPcopy Create free account
hub / github.com/Snapchat/Valdi / insert

Method insert

snap_drawing/src/snap_drawing/cpp/Text/TextShaperCache.cpp:131–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131void TextShaperCache::insert(const TextShaperCacheKey& key, const ShapedGlyph* glyphs, size_t glyphsLength) {
132 auto node = TextShaperCacheNode::make(key.fontId,
133 key.letterSpacing,
134 key.script,
135 key.isRightToLeft,
136 key.characters,
137 key.length,
138 glyphs,
139 glyphsLength,
140 key.hash());
141 _cache.insert(node);
142}
143
144} // namespace snap::drawing
145

Callers

nothing calls this directly

Calls 2

insertMethod · 0.65
hashMethod · 0.45

Tested by

no test coverage detected