54 static ::std::unique_ptr<CacheCompactor>
Create (
56 sal_Int32 nMaximalCacheSize);
69 sal_Int32 nMaximalCacheSize);
74 virtual void Run() = 0;
This low level cache is the actual bitmap container.
This is an interface class whose implementations are created via the Create() factory method.
virtual void RequestCompaction()
Request a compaction of the off-screen previews in the bitmap cache.
bool mbIsCompactionRunning
sal_Int32 mnMaximalCacheSize
Timer maCompactionTimer
This timer is used to collect calls to RequestCompaction() and eventually call Run().
static ::std::unique_ptr< CacheCompactor > Create(BitmapCache &rCache, sal_Int32 nMaximalCacheSize)
Create a new instance of the CacheCompactor interface class.
virtual void Run()=0
This method actually tries to reduce the total number of bytes used by the off-screen preview bitmaps...
DECL_LINK(CompactionCallback, Timer *, void)
virtual ~CacheCompactor()
CacheCompactor(BitmapCache &rCache, sal_Int32 nMaximalCacheSize)