mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 1296828
(Part 1) - Use ImageKey consistently in SurfaceCache. r=dholbert
This commit is contained in:
parent
cbdf3625fa
commit
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());
|
||||
|
Loading…
Reference in New Issue
Block a user