Skip to content

Variable: ssImageCache ​

const ssImageCache: SsRefCache<SkImage>

Defined in: packages/react-native-spritestudio/src/core/caches.ts:30

Decoded atlases, keyed by resolved image URI.

Not disposed on eviction, and deliberately so: SsTextureRegistry already states that it does not own the SkImages handed to it, because one can be inside a recorded-but-not-yet-rasterised SkPicture when its last registry goes. Dropping the reference and leaving it to the collector is the existing contract; this cache only stops the decode happening twice.