Bug 1580317. Fix calculation of buffer size. r=aosmond

Differential Revision: https://phabricator.services.mozilla.com/D47123

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Timothy Nikkel 2019-09-25 19:24:07 +00:00
Родитель 81918ac172
Коммит 61d1597ffc
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -87,7 +87,7 @@ static bool ShouldUseHeap(const IntSize& aSize, int32_t aStride,
// Lets us avoid too many small images consuming all of the handles. The
// actual allocation checks for overflow.
int32_t bufferSize = (aStride * aSize.width) / 1024;
int32_t bufferSize = (aStride * aSize.height) / 1024;
if (bufferSize < StaticPrefs::image_mem_volatile_min_threshold_kb()) {
return true;
}