зеркало из https://github.com/mozilla/gecko-dev.git
Bug 969580 - Part 1: Expose DiscardAll to SurfaceCache public interface. r=seth
This commit is contained in:
Родитель
b496b18de3
Коммит
b1744891e0
|
@ -524,5 +524,14 @@ SurfaceCache::Discard(Image* aImageKey)
|
|||
return sInstance->Discard(aImageKey);
|
||||
}
|
||||
|
||||
/* static */ void
|
||||
SurfaceCache::DiscardAll()
|
||||
{
|
||||
MOZ_ASSERT(sInstance, "Should be initialized");
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
|
||||
return sInstance->DiscardAll();
|
||||
}
|
||||
|
||||
} // namespace image
|
||||
} // namespace mozilla
|
||||
|
|
|
@ -162,6 +162,11 @@ struct SurfaceCache
|
|||
*/
|
||||
static void Discard(const ImageKey aImageKey);
|
||||
|
||||
/*
|
||||
* Evicts all caches surfaces from ths cache.
|
||||
*/
|
||||
static void DiscardAll();
|
||||
|
||||
private:
|
||||
virtual ~SurfaceCache() = 0; // Forbid instantiation.
|
||||
};
|
||||
|
|
|
@ -10,6 +10,7 @@ EXPORTS += [
|
|||
'imgRequest.h',
|
||||
'imgRequestProxy.h',
|
||||
'Orientation.h',
|
||||
'SurfaceCache.h'
|
||||
]
|
||||
|
||||
UNIFIED_SOURCES += [
|
||||
|
|
Загрузка…
Ссылка в новой задаче