Table of Contents

Interface ISKImagePyramidTileCache

Namespace
SkiaSharp.Extended
Assembly
SkiaSharp.Extended.dll

The internal sync render buffer used by SKImagePyramidController. Stores hot decoded tiles for the render loop.

public interface ISKImagePyramidTileCache : IDisposable
Inherited Members

Remarks

This is a pure in-memory LRU cache — no persistence, no async. Disk caching and other persistent strategies are the responsibility of ISKImagePyramidTileProvider implementations, not this interface.

Properties

Count

Number of tiles currently in the cache.

Methods

Clear()

Clears all cached tiles, disposing their resources.

Contains(SKImagePyramidTileId)

Returns true if the tile is present in the cache.

FlushEvicted()

Disposes tiles evicted since the last call. Call once per render frame on the UI thread before drawing.

Put(SKImagePyramidTileId, SKImagePyramidTile)

Stores a tile in the cache.

Remove(SKImagePyramidTileId)

Removes a specific tile from the cache. Returns false if not found.

TryGet(SKImagePyramidTileId, out SKImagePyramidTile?)

Tries to retrieve a cached tile. Returns false on a miss.