commit | 00d043db651d3633a98ee2f0bdb426f508750628 | [log] [tgz] |
---|---|---|
author | Kohsuke Yatoh <kyatoh@google.com> | Sat Jul 23 05:58:45 2022 +0000 |
committer | Kohsuke Yatoh <kyatoh@google.com> | Wed Jul 27 15:42:10 2022 +0000 |
tree | 986e351b967b442bf951a8c4a0eab6d1bcf89927 | |
parent | 6e906ecaa21a9f7d610a52b0e6f1280d44848b1b [diff] |
Optimize FontFamily fields. This CL replaces: 1. mFonts (vector, 20B) with pointer (8B) + size (4B). 2. mCmapFmt14Coverage (vector, 20B) with pointer (8B) + size (2B). 3. mSupportedAxes (unordered_set, 40B) with pointer to sorted array (8B) + size (2B). This CL also packs byte fields at the end to minimize padding. Together, this CL saves ~13 KB (64 bytes * 198) on oriole. Bug: 174672300 Test: atest minikin_tests Change-Id: Ib2311c45a9b25fbde265d70dd45051f16a4bf0f3