This basically is the implementation class for the PageCache class.
void RequestPreviewBitmap(const CacheKey aKey, const bool bMayBeUpToDate)
When the requested preview bitmap does not yet exist or is not up-to-date then the rendering of one i...
void ProvideCacheAndProcessor()
Both bitmap cache and queue processor are created on demand by this method.
void SetPreciousFlag(const CacheKey aKey, const bool bIsPrecious)
With the precious flag you can control whether a bitmap can be removed from the cache or reduced in s...
void ChangePreviewSize(const Size &rPreviewSize, const bool bDoSuperSampling)
Change the size of the preview bitmaps.
BitmapEx GetMarkedPreviewBitmap(const CacheKey aKey)
BitmapEx GetPreviewBitmap(const CacheKey aKey, const bool bResize)
Request a preview bitmap for the specified page object in the specified size.
GenericPageCache(const Size &rPreviewSize, const bool bDoSuperSampling, const SharedCacheContext &rpCacheContext)
The page cache is created with a reference to the SlideSorter and thus has access to both view and mo...
std::unique_ptr< QueueProcessor > mpQueueProcessor
void InvalidateCache()
Call this method when all preview bitmaps have to be generated anew.
Size maPreviewSize
The current size of preview bitmaps.
RequestQueue maRequestQueue
std::shared_ptr< BitmapCache > mpBitmapCache
bool InvalidatePreviewBitmap(const CacheKey aKey)
Tell the cache to replace the bitmap associated with the given request data with a new one that refle...
SharedCacheContext mpCacheContext
void SetMarkedPreviewBitmap(const CacheKey aKey, const BitmapEx &rMarkedBitmap)