Allow up to 128 MB of cached images.

This commit is contained in:
John Preston 2018-10-31 10:37:16 +04:00
parent c9159e2191
commit fabf830132

View file

@ -18,8 +18,8 @@ using namespace Images;
namespace Images {
namespace {
// After 64MB of unpacked images we try to clear some memory.
constexpr auto kMemoryForCache = 64 * 1024 * 1024;
// After 128 MB of unpacked images we try to clear some memory.
constexpr auto kMemoryForCache = 128 * 1024 * 1024;
QMap<QString, Image*> LocalFileImages;
QMap<QString, Image*> WebUrlImages;