Commit d6b8cdd1 authored by David Reveman's avatar David Reveman Committed by Chromium LUCI CQ

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/+/2573156Reviewed-by: default avatarZhenyao Mo <zmo@chromium.org>
Reviewed-by: default avatarSergey Ulanov <sergeyu@chromium.org>
Reviewed-by: default avatarEmircan Uysaler <emircan@chromium.org>
Commit-Queue: David Reveman <reveman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#833596}
parent 4aeed825
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment