This is an interface class whose implementations are created via the Create() factory method.
More...
#include <SlsCacheCompactor.hxx>
|
| CacheCompactor (BitmapCache &rCache, sal_Int32 nMaximalCacheSize) |
|
virtual void | Run ()=0 |
| This method actually tries to reduce the total number of bytes used by the off-screen preview bitmaps. More...
|
|
This is an interface class whose implementations are created via the Create() factory method.
Definition at line 33 of file SlsCacheCompactor.hxx.
◆ ~CacheCompactor()
virtual sd::slidesorter::cache::CacheCompactor::~CacheCompactor |
( |
| ) |
|
|
inlinevirtual |
◆ CacheCompactor()
sd::slidesorter::cache::CacheCompactor::CacheCompactor |
( |
BitmapCache & |
rCache, |
|
|
sal_Int32 |
nMaximalCacheSize |
|
) |
| |
|
protected |
◆ Create()
std::unique_ptr< CacheCompactor > sd::slidesorter::cache::CacheCompactor::Create |
( |
BitmapCache & |
rCache, |
|
|
sal_Int32 |
nMaximalCacheSize |
|
) |
| |
Create a new instance of the CacheCompactor interface class.
The type of compaction algorithm used depends on values from the configuration: the SlideSorter/PreviewCache/CompactionPolicy property of the Impress.xcs file currently supports the values "None" and "Compress". With the later the CompressionPolicy property is evaluated which implementation of the BitmapCompress interface class to use as bitmap compressor.
- Parameters
-
rCache | The bitmap cache on which to operate. |
nMaximalCacheSize | The total number of bytes the off-screen bitmaps in the cache may have. When the Run() method is (indirectly) called the compactor tries to reduce that summed size of off-screen bitmaps under this number. However, it is not guaranteed that this works in all cases. |
Definition at line 82 of file SlsCacheCompactor.cxx.
References Any, GetValue, sd::slidesorter::cache::CacheConfiguration::Instance(), and sNone.
Referenced by sd::slidesorter::cache::BitmapCache::BitmapCache().
◆ DECL_LINK()
sd::slidesorter::cache::CacheCompactor::DECL_LINK |
( |
CompactionCallback |
, |
|
|
Timer * |
, |
|
|
void |
|
|
) |
| |
|
private |
◆ RequestCompaction()
void sd::slidesorter::cache::CacheCompactor::RequestCompaction |
( |
| ) |
|
|
virtual |
◆ Run()
virtual void sd::slidesorter::cache::CacheCompactor::Run |
( |
| ) |
|
|
protectedpure virtual |
This method actually tries to reduce the total number of bytes used by the off-screen preview bitmaps.
◆ maCompactionTimer
Timer sd::slidesorter::cache::CacheCompactor::maCompactionTimer |
|
private |
◆ mbIsCompactionRunning
bool sd::slidesorter::cache::CacheCompactor::mbIsCompactionRunning |
|
private |
◆ mnMaximalCacheSize
sal_Int32 sd::slidesorter::cache::CacheCompactor::mnMaximalCacheSize |
|
protected |
◆ mrCache
BitmapCache& sd::slidesorter::cache::CacheCompactor::mrCache |
|
protected |
The documentation for this class was generated from the following files: