commit | 4651b99f324a2c8af4600a2fe8c60379bf96fce2 | [log] [tgz] |
---|---|---|
author | Ben Wagner <bungeman@google.com> | Wed May 13 10:44:49 2020 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Tue May 19 17:42:14 2020 +0000 |
tree | 23b261f6676183a0b9c623ca8e95772337dc6515 | |
parent | be259dcce0faaae616a790797c30045244e1b93b [diff] |
Reland "Cache hb_face." Creating an hb_face can be quite expensive, cache them. This implementation is similar to the super simple caching strategy used by libtxt. It uses a simple global LRU cache from SkFontID to hb_hbface of size 100. Reviewed-on: https://skia-review.googlesource.com/c/skia/+/289442 Change-Id: I971620f7aaaf2d7b6902da8681e29d6d458429ed Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290761 Commit-Queue: Ben Wagner <bungeman@google.com> Reviewed-by: Mike Klein <mtklein@google.com>