summaryrefslogtreecommitdiffstats
path: root/sample/MinikinSkia.h
diff options
context:
space:
mode:
authorRaph Levien <raph@google.com>2016-04-06 15:19:34 -0700
committerRaph Levien <raph@google.com>2016-04-08 08:26:38 -0700
commitaaa4e3470270496e6eb80704eadecb2cb7c56bf0 (patch)
tree29621172855331d3db82dc28f0c784b9f0e44d9a /sample/MinikinSkia.h
parent9afcc6e2bd4d89e4e1deb6e18c3c4daca4e114fd (diff)
downloadandroid_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 'sample/MinikinSkia.h')
0 files changed, 0 insertions, 0 deletions