cws impress190: rebase m82
This commit is contained in:
37
sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx
vendored
Normal file → Executable file
37
sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx
vendored
Normal file → Executable file
@@ -178,14 +178,6 @@ void BitmapCache::Clear (void)
|
||||
|
||||
|
||||
|
||||
bool BitmapCache::IsEmpty (void) const
|
||||
{
|
||||
return mpBitmapContainer->empty();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
bool BitmapCache::IsFull (void) const
|
||||
{
|
||||
return mbIsFull;
|
||||
@@ -261,21 +253,6 @@ bool BitmapCache::BitmapIsUpToDate (const CacheKey& rKey)
|
||||
|
||||
|
||||
|
||||
void BitmapCache::ReleaseBitmap (const CacheKey& rKey)
|
||||
{
|
||||
::osl::MutexGuard aGuard (maMutex);
|
||||
|
||||
CacheBitmapContainer::iterator aIterator (mpBitmapContainer->find(rKey));
|
||||
if (aIterator != mpBitmapContainer->end())
|
||||
{
|
||||
UpdateCacheSize(aIterator->second, REMOVE);
|
||||
mpBitmapContainer->erase(aIterator);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void BitmapCache::InvalidateBitmap (const CacheKey& rKey)
|
||||
{
|
||||
::osl::MutexGuard aGuard (maMutex);
|
||||
@@ -348,20 +325,6 @@ void BitmapCache::SetBitmap (
|
||||
|
||||
|
||||
|
||||
bool BitmapCache::IsPrecious (const CacheKey& rKey)
|
||||
{
|
||||
::osl::MutexGuard aGuard (maMutex);
|
||||
|
||||
CacheBitmapContainer::iterator aIterator (mpBitmapContainer->find(rKey));
|
||||
if (aIterator != mpBitmapContainer->end())
|
||||
return aIterator->second.IsPrecious();
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void BitmapCache::SetPrecious (const CacheKey& rKey, bool bIsPrecious)
|
||||
{
|
||||
::osl::MutexGuard aGuard (maMutex);
|
||||
|
Reference in New Issue
Block a user