diff options
author | Raph Levien <raph@google.com> | 2016-04-06 15:19:34 -0700 |
---|---|---|
committer | Raph Levien <raph@google.com> | 2016-04-08 08:26:38 -0700 |
commit | aaa4e3470270496e6eb80704eadecb2cb7c56bf0 (patch) | |
tree | 29621172855331d3db82dc28f0c784b9f0e44d9a /tools | |
parent | 9afcc6e2bd4d89e4e1deb6e18c3c4daca4e114fd (diff) | |
download | android_frameworks_minikin-aaa4e3470270496e6eb80704eadecb2cb7c56bf0.tar.gz android_frameworks_minikin-aaa4e3470270496e6eb80704eadecb2cb7c56bf0.tar.bz2 android_frameworks_minikin-aaa4e3470270496e6eb80704eadecb2cb7c56bf0.zip |
Avoid copying of font table data
The hb_font_t object holds on to tables of font data, acquired through
the MinikinFont::GetTable interface, which is based on copying data
into caller-owned buffers. Now that we're caching lots of hb_font_t's,
the cost of these buffers is significant.
This patch moves to a different interface, inspired by HarfBuzz's
hb_reference_table API, where the font can provide a pointer to the
actual font data (which will often be mmap'ed, so it doesn't even
consume physical RAM).
Bug: 27860101
Change-Id: Id766ab16a8d342bf7322a90e076e801271d527d4
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions