зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1296828
(Part 1) - Use ImageKey consistently in SurfaceCache. r=dholbert
This commit is contained in:
Родитель
cbdf3625fa
Коммит
8f4ebfcf90
|
@ -1077,7 +1077,7 @@ SurfaceCache::SurfaceAvailable(NotNull<ISurfaceProvider*> aProvider,
|
|||
}
|
||||
|
||||
/* static */ void
|
||||
SurfaceCache::LockImage(Image* aImageKey)
|
||||
SurfaceCache::LockImage(const ImageKey aImageKey)
|
||||
{
|
||||
if (sInstance) {
|
||||
MutexAutoLock lock(sInstance->GetMutex());
|
||||
|
@ -1086,7 +1086,7 @@ SurfaceCache::LockImage(Image* aImageKey)
|
|||
}
|
||||
|
||||
/* static */ void
|
||||
SurfaceCache::UnlockImage(Image* aImageKey)
|
||||
SurfaceCache::UnlockImage(const ImageKey aImageKey)
|
||||
{
|
||||
if (sInstance) {
|
||||
MutexAutoLock lock(sInstance->GetMutex());
|
||||
|
@ -1104,7 +1104,7 @@ SurfaceCache::UnlockEntries(const ImageKey aImageKey)
|
|||
}
|
||||
|
||||
/* static */ void
|
||||
SurfaceCache::RemoveImage(Image* aImageKey)
|
||||
SurfaceCache::RemoveImage(const ImageKey aImageKey)
|
||||
{
|
||||
if (sInstance) {
|
||||
MutexAutoLock lock(sInstance->GetMutex());
|
||||
|
|
Загрузка…
Ссылка в новой задаче