_lv_gradient_cache_t struct
To avoid recomputing gradient for each draw operation, it's possible to cache the computation in this structure instance. Whenever possible, this structure is reused instead of recomputing the gradient map
Fields
A discriminating key that's built from the drawing operation. If the key does not match, the cache item is not used.
A life counter that's incremented on usage. Higher counter is less likely to be evicted from the cache.
Used to skip dithering in it if already done.
The cache was too small so this item is not managed by the cache.
The computed gradient low bitdepth color map, points into the cache's buffer, no free needed.
The map allocated size in colors.
The computed gradient color map size, in colors.