MCPcopy Create free account
hub / github.com/OpenImageDebugger/OpenImageDebugger / evict_missing

Method evict_missing

src/host/ui/thumbnail_cache.cpp:137–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137void ThumbnailCache::evict_missing(const std::vector<std::string>& live_names) {
138 const std::unordered_set<std::string> live(live_names.begin(),
139 live_names.end());
140 std::erase_if(entries_, [&live, this](const auto& kv) {
141 if (!live.contains(kv.first)) {
142 if (kv.second.tex != 0) {
143 canvas_.glDeleteTextures(1, &kv.second.tex);
144 }
145 return true;
146 }
147 return false;
148 });
149}
150
151} // namespace oid::host

Callers 1

mainFunction · 0.80

Calls 3

beginMethod · 0.80
endMethod · 0.80
glDeleteTexturesMethod · 0.80

Tested by

no test coverage detected