Switch Mac OS HarfBuzz hb_face creation to table copying
Removing the CTFont based construction when rolling to HarfBuzz' native AAT lead us to falling back to attempting the mmap'ed access to the font SkStreamAsset. However, the implementation for onOpenStream in SkTypeface_Mac is highly inefficient and synthesizes a font from copying all tables. Disable this type of instantiation on Mac and use the table copy method instead. This should address memory regression for the HarfBuzz AAT roll [1]. [1] https://chromium.googlesource.com/chromium/src/+/c67f53b0b70f33c47159d37f7e59bb44399b0d09 Bug: 908552 Change-Id: Ibf19ea6308f34fd4927e2b7fd59cdff20f3aad6d Tbr: eae@chromium.org, behdad@chromium.org Reviewed-on: https://chromium-review.googlesource.com/c/1355129Reviewed-by:Dominik Röttsches <drott@chromium.org> Reviewed-by:
Behdad Esfahbod <behdad@chromium.org> Reviewed-by:
Ben Wagner <bungeman@chromium.org> Commit-Queue: Dominik Röttsches <drott@chromium.org> Cr-Commit-Position: refs/heads/master@{#612233}
Showing
Please register or sign in to comment