Companion
Properties
The max number of entries in the font cache.
The number of entries currently in the font cache.
The max number of bytes that should be used by the font cache.
The number of bytes currently used by the font cache.
When the cachable entry is very large (e.g. a large scaled bitmap), adding it to the cache can cause most/all of the existing entries to be purged. To avoid this, the client can set a limit for a single allocation. If a cacheable entry would have been cached, but its size exceeds this limit, then we do not attempt to cache it at all.
The memory usage limit in bytes for the resource cache, used for temporary bitmaps and other resources.
The memory in bytes used for temporary images and other resources.
Functions
Free as much globally cached memory as possible. This will purge all private caches in Skia, including font and image caches.
For debugging purposes, this will attempt to purge the font cache.
For debugging purposes, this will attempt to purge the resource cache.