зеркало из https://github.com/mozilla/gecko-dev.git
bug#51249: add chrome to FlushCache. pnunn r:syd
This commit is contained in:
Родитель
3b88620c17
Коммит
ccda7ec14f
|
@ -50,7 +50,7 @@ public:
|
|||
virtual void SetCacheSize(PRInt32 aCacheSize);
|
||||
virtual PRInt32 GetCacheSize(void);
|
||||
virtual PRInt32 ShrinkCache(void);
|
||||
NS_IMETHOD FlushCache(void);
|
||||
NS_IMETHOD FlushCache(PRUint8 img_catagory);
|
||||
// virtual nsImageType GetImageType(const char *buf, PRInt32 length);
|
||||
|
||||
private:
|
||||
|
@ -123,12 +123,13 @@ ImageManagerImpl::ShrinkCache(void)
|
|||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
ImageManagerImpl::FlushCache(void)
|
||||
ImageManagerImpl::FlushCache(PRUint8 img_catagory)
|
||||
{
|
||||
IL_FlushCache();
|
||||
IL_FlushCache(img_catagory);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
ImageManagerImpl::FlushMemory(PRUint32 reason, size_t requestedAmount)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче