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

Method clearCache

snap_drawing/src/snap_drawing/cpp/Text/WordCachingTextShaper.cpp:21–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19WordCachingTextShaper::~WordCachingTextShaper() = default;
20
21void WordCachingTextShaper::clearCache() {
22 std::lock_guard<Valdi::Mutex> lock(_mutex);
23 _cache.clear();
24}
25
26TextParagraphList WordCachingTextShaper::resolveParagraphs(const Character* unicodeText,
27 size_t length,

Callers 1

doBenchmarkFunction · 0.45

Calls 1

clearMethod · 0.65

Tested by

no test coverage detected