diff options
author | khushalsagar <khushalsagar@chromium.org> | 2016-02-12 12:42:48 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-12 12:42:49 -0800 |
commit | ebc465b8f271f362015fdf352b8355989e59a3f3 (patch) | |
tree | e868fb527dd6a61a796a2ad812607dd3ee2c492a /tests/ColorPrivTest.cpp | |
parent | 70e418b468b1656feae3e84851562b22e5d25660 (diff) |
Add support for caching font files in the Android SkFontMgr.
SkFontMgr_Android lazily access font files from disk, which is not
possible when it is used in the renderer sandbox on Linux. Add a flag to
SkFontMgr_Android_CustomFonts for caching readonly FILE streams when
creating the font mgr.
Since the font mgr is created before the sandbox is initialized, it can
access these files on initialization, and use these cached streams safely
for its lifetime.
Review URL: https://codereview.chromium.org/1673373003
Diffstat (limited to 'tests/ColorPrivTest.cpp')
0 files changed, 0 insertions, 0 deletions