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

Function makeCacheKey

snap_drawing/test/src/TextShaperCache_tests.cpp:37–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37static TextShaperCacheKey makeCacheKey(FontId fontId, const std::vector<Character>& characters) {
38 return TextShaperCacheKey(fontId, 0.0f, TextScript::invalid(), false, characters.data(), characters.size());
39}
40
41TEST(TextShaperCache, canInsertAndGet) {
42 TextShaperCache cache(8);

Callers 1

TESTFunction · 0.85

Calls 3

TextShaperCacheKeyClass · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected