Introduce experiment to control font cache invalidation when purging renderers
The PurgeRendererMemoryWhenBackgrounded (formerly PurgeAndSuspend) feature sends a critical memory pressure signal within 4 minutes of a renderer being backgrounded. This feature was introduced to improved memory usage. Whenever a critical memory pressure signal occurs within a renderer, the font cache is invalidated. This behavior always causes a full layout to occur when the renderer is foregrounded, which would negatively impact tab switch time. This idea is validated by benchmarks collected in the associated bug. The PurgeRendererMemoryWhenBackgrounded was shipped due to its positive impact on memory usage, and font cache invalidation may play a role in the gains. An experiment is being introduced to assess the impact of font cache invalidation when purging. The experiment will only run on desktop clients, to avoid changing behavior during low memory situations (signal sent only on Android). Bug: 939543 Change-Id: Ieb814417d70f2881d0d6ddd61d4a9dc142e0b666 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1532908Reviewed-by:François Doray <fdoray@chromium.org> Reviewed-by:
Kentaro Hara <haraken@chromium.org> Commit-Queue: Aditya Keerthi <adityakeerthi@google.com> Cr-Commit-Position: refs/heads/master@{#645311}
Showing
Please register or sign in to comment