Skip to main content

Module raster_cache

Module raster_cache 

Source
Expand description

Keys of the cached rasters of layers.

Structs§

LayerRasterCacheHashes
Hashes of a layer’s content and of its render effect, which key its raster cache entries.
LayerRasterCacheIdentity
Identity of a node’s cached raster of one kind. It stays the same while the content changes.
LayerRasterCacheKey
Key of one cached layer raster. It covers the kind of entry, the owning node, the content and effect hashes, the layer bounds, the pixel size, the raster scale and the sub-pixel phase.
RasterScale
The device scale a layer raster is drawn at, compared exactly: a raster drawn at one scale places its edges and glyphs where no other scale does, so it serves only that scale.

Constants§

LAYER_RASTER_CACHE_KIND_COUNT
Number of distinct LayerRasterCacheKey kinds; see LayerRasterCacheKey::kind_slot and LAYER_RASTER_CACHE_KIND_LABELS.
LAYER_RASTER_CACHE_KIND_LABELS
Short labels per kind slot, in LayerRasterCacheKey::kind_slot order.