Add a glyph-bound-rect cache to the font cache

Desktop / LibreOffice - Jan-Marek Glogowski [fbihome.de] - 6 October 2018 13:17 EDT

This way the font cache can correctly invalidate the cached glyph rects when a font is dropped from the cache.

Change-Id: I050866099742334f01cac1b872228a017ddb5e9b Reviewed-on: https://gerrit.libreoffice.org/61371

612339e57429 Add a glyph-bound-rect cache to the font cache
include/o3tl/lru_map.hxx | 27 +++++++++++++++++++-
o3tl/qa/test-lru_map.cxx | 55 ++++++++++++++++++++++++++++++++++++++++
vcl/inc/fontinstance.hxx | 6 +++++
vcl/inc/impfontcache.hxx | 48 ++++++++++++++++++++++++++++++-----
vcl/source/font/fontcache.cxx | 38 ++++++++++++++++++++++++++-
vcl/source/font/fontinstance.cxx | 13 ++++++++++
6 files changed, 179 insertions(+), 8 deletions(-)

Upstream: cgit.freedesktop.org


  • Share