MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / load

Function load

Source/Cache/AtlasCache.cpp:22–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 virtual ~SpineTextureLoader() { }
21
22 virtual void load(spine::AtlasPage& page, const spine::String& path) {
23 auto texture = SharedTextureCache.load({path.buffer(), path.length()});
24 if (!texture) return;
25 texture->retain();
26 page.texture = texture;
27 page.width = texture->getWidth();
28 page.height = texture->getHeight();
29 }
30
31 virtual void unload(void* texture) {
32 if (texture) {

Callers 11

loadMethod · 0.70
loadMethod · 0.70
loadMethod · 0.70
loadMethod · 0.70
loadDragonBoneMethod · 0.70
loadTextureMethod · 0.70
loadFrameMethod · 0.70
executeLuaCommandFunction · 0.50
execMethod · 0.50
DoraTagMethod · 0.50
cache_loadFunction · 0.50

Calls 6

bufferMethod · 0.80
loadMethod · 0.65
lengthMethod · 0.45
retainMethod · 0.45
getWidthMethod · 0.45
getHeightMethod · 0.45

Tested by

no test coverage detected