MCPcopy Create free account
hub / github.com/Squalr/Squally / addImageAsync

Method addImageAsync

Source/Engine/Core/renderer/CCTextureCache.cpp:128–131  ·  view source on GitHub ↗

The addImageAsync logic follow the steps: - find the image has been add or not, if not add an AsyncStruct to _requestQueue (GL thread) - get AsyncStruct from _requestQueue, load res and fill image data to AsyncStruct.image, then add AsyncStruct to _responseQueue (Load thread) - on schedule callback, get AsyncStruct from _responseQueue, convert image to texture, then delete AsyncStruct (GL thre

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 5

getInstanceFunction · 0.85
fullPathForFilenameMethod · 0.80
push_backMethod · 0.80
endMethod · 0.45
scheduleMethod · 0.45

Tested by

no test coverage detected