Limit HashMap growth in CSSSegmentedFontFace by moving to LruCache
Addresses unbounded memory growth of font_data_table_ in CSSSegmentedFontFace leading to out of memory situations when animating variable fonts. Manually tested observing Chrome's task manager memory consumption on Linux for a tab running a variable font animation test page. Tab memory stays around 75MB over a period of 2 minutes vs. growing to around 1.3GB before. Bug: 778352 Change-Id: I53b1f5805974d667aec35d6a9358205f5346b63c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2032112 Commit-Queue: Dominik Röttsches <drott@chromium.org> Reviewed-by:Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#740277}
Showing
Please register or sign in to comment