commit | 82dff59bd880e367beddace8e3844f7521ddadec | [log] [tgz] |
---|---|---|
author | Koji Ishii <kojii@chromium.org> | Fri Sep 14 17:44:36 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Sep 14 17:44:36 2018 |
tree | d4114cd018eca379cebdbfda8fe37d41b574b199 | |
parent | f80e40ed996a3ad7c787487e9595a3d6e0743e31 [diff] |
Cache (size / units_per_em) in HarfBuzzFontData SkTypeface::getUnitsPerEm() is not a fast function. This patch caches (size / units_per_em) in HarfBuzzFontData. Improves long-line-nowrap.html from 580ms to 547ms (~6%) Bug: 636993 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng Change-Id: I4decd9f66e6b99b4798b1c7cc522999bba372aba Reviewed-on: https://chromium-review.googlesource.com/1226773 Commit-Queue: Emil A Eklund <eae@chromium.org> Reviewed-by: Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#591385}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .