Bug 1296828 (Part 1) - Use ImageKey consistently in SurfaceCache. r=dholbert
authorSeth Fowler <mark.seth.fowler@gmail.com>
Tue, 02 Aug 2016 23:13:24 -0700
changeset 311561 39e0894d2dfec61a563e42f93a5d050b9bc86ffb
parent 311560 b05bc0a2ed3ab3894550b1437acdfd2a1740b9ce
child 311562 8f8d3c106410aed2252be6180c542aef3b8ad738
push id30616
push userryanvm@gmail.com
push dateMon, 29 Aug 2016 16:48:19 +0000
treeherdermozilla-central@acfb2c3ac6ae [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdholbert
bugs1296828
milestone51.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1296828 (Part 1) - Use ImageKey consistently in SurfaceCache. r=dholbert
image/SurfaceCache.cpp
--- a/image/SurfaceCache.cpp
+++ b/image/SurfaceCache.cpp
@@ -1072,26 +1072,26 @@ SurfaceCache::SurfaceAvailable(NotNull<I
     return;
   }
 
   MutexAutoLock lock(sInstance->GetMutex());
   sInstance->SurfaceAvailable(aProvider, aImageKey, aSurfaceKey);
 }
 
 /* static */ void
-SurfaceCache::LockImage(Image* aImageKey)
+SurfaceCache::LockImage(const ImageKey aImageKey)
 {
   if (sInstance) {
     MutexAutoLock lock(sInstance->GetMutex());
     return sInstance->LockImage(aImageKey);
   }
 }
 
 /* static */ void
-SurfaceCache::UnlockImage(Image* aImageKey)
+SurfaceCache::UnlockImage(const ImageKey aImageKey)
 {
   if (sInstance) {
     MutexAutoLock lock(sInstance->GetMutex());
     return sInstance->UnlockImage(aImageKey);
   }
 }
 
 /* static */ void
@@ -1099,17 +1099,17 @@ SurfaceCache::UnlockEntries(const ImageK
 {
   if (sInstance) {
     MutexAutoLock lock(sInstance->GetMutex());
     return sInstance->UnlockEntries(aImageKey);
   }
 }
 
 /* static */ void
-SurfaceCache::RemoveImage(Image* aImageKey)
+SurfaceCache::RemoveImage(const ImageKey aImageKey)
 {
   if (sInstance) {
     MutexAutoLock lock(sInstance->GetMutex());
     sInstance->RemoveImage(aImageKey);
   }
 }
 
 /* static */ void