0

Remove Fuchsia special case for kMaxLowEndGaneshResourceCacheBytes.

This is causing more memory to be used in some cases because
of this skia bug: https://bugs.chromium.org/p/skia/issues/detail?id=11038

48MB is enough to avoid that problem.

Bug: 1155326
Change-Id: Ife884162d29ca4f1a46caaeb9aa0188c3fe44eb4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2573156
Reviewed-by: Zhenyao Mo <zmo@chromium.org>
Reviewed-by: Sergey Ulanov <sergeyu@chromium.org>
Reviewed-by: Emircan Uysaler <emircan@chromium.org>
Commit-Queue: David Reveman <reveman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#833596}
This commit is contained in:
David Reveman
2020-12-04 03:44:42 +00:00
committed by Chromium LUCI CQ
parent 4aeed8254d
commit d6b8cdd17c

@ -25,12 +25,7 @@ void DetermineGrCacheLimitsFromAvailableMemory(
#if !defined(OS_NACL)
// The limit of the bytes allocated toward GPU resources in the GrContext's
// GPU cache.
#if defined(OS_FUCHSIA)
// Reduce protected budget on fuchsia due to https://fxb/36620.
constexpr size_t kMaxLowEndGaneshResourceCacheBytes = 24 * 1024 * 1024;
#else
constexpr size_t kMaxLowEndGaneshResourceCacheBytes = 48 * 1024 * 1024;
#endif // defined(OS_FUCHSIA)
constexpr size_t kMaxHighEndGaneshResourceCacheBytes = 256 * 1024 * 1024;
// Limits for glyph cache textures.
constexpr size_t kMaxLowEndGlyphCacheTextureBytes = 1024 * 512 * 4;