MCPcopy Create free account
hub / github.com/Tencent/tgfx / addStaticResource

Method addStaticResource

src/gpu/GlobalCache.cpp:244–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244void GlobalCache::addStaticResource(const UniqueKey& uniqueKey,
245 std::shared_ptr<Resource> resource) {
246 if (uniqueKey.empty()) {
247 return;
248 }
249 staticResources[uniqueKey] = std::move(resource);
250}
251
252} // namespace tgfx

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected