Companion

object Companion

Properties

Link copied to clipboard

The max number of entries in the font cache.

Link copied to clipboard

The number of entries currently in the font cache.

Link copied to clipboard

The max number of bytes that should be used by the font cache.

Link copied to clipboard

The number of bytes currently used by the font cache.

Link copied to clipboard

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.

Link copied to clipboard

The memory usage limit in bytes for the resource cache, used for temporary bitmaps and other resources.

Link copied to clipboard

The memory in bytes used for temporary images and other resources.

Functions

Link copied to clipboard

Free as much globally cached memory as possible. This will purge all private caches in Skia, including font and image caches.

Link copied to clipboard

For debugging purposes, this will attempt to purge the font cache.

Link copied to clipboard

For debugging purposes, this will attempt to purge the resource cache.