MCPcopy Create free account
hub / github.com/OpenImageDebugger/OpenImageDebugger / ~ThumbnailCache

Method ~ThumbnailCache

src/host/ui/thumbnail_cache.cpp:40–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 render_h_(static_cast<int>(75.0f * content_scale)) {}
39
40ThumbnailCache::~ThumbnailCache() {
41 for (const auto& [name, entry] : entries_) {
42 if (entry.tex != 0) {
43 canvas_.glDeleteTextures(1, &entry.tex);
44 }
45 }
46}
47
48void ThumbnailCache::begin_frame() {
49 rendered_this_frame_ = false;

Callers

nothing calls this directly

Calls 1

glDeleteTexturesMethod · 0.80

Tested by

no test coverage detected