Bug 1137058 - Increment RasterImage::mLockCount to ensure that non-discardable images don't eventually become unlocked. r=tn

This commit is contained in:
Seth Fowler 2015-03-17 19:40:17 -07:00
Родитель dfd05ab4ad
Коммит 5e56897acb
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -326,6 +326,7 @@ RasterImage::Init(const char* aMimeType,
// Lock this image's surfaces in the SurfaceCache if we're not discardable.
if (!mDiscardable) {
mLockCount++;
SurfaceCache::LockImage(ImageKey(this));
}