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

Method AddToList

src/gpu/ResourceCache.cpp:201–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201void ResourceCache::AddToList(std::list<Resource*>& list, Resource* resource) {
202 list.push_back(resource);
203 resource->cachedList = &list;
204 resource->cachedPosition = --list.end();
205}
206
207void ResourceCache::RemoveFromList(std::list<Resource*>& list, Resource* resource) {
208 list.erase(resource->cachedPosition);

Callers

nothing calls this directly

Calls 1

endMethod · 0.45

Tested by

no test coverage detected