зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
81918ac172
Коммит
61d1597ffc
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче