use surface atlas for Skia text drawing on Windows

Desktop / LibreOffice - Luboš Luňák [collabora.com] - 16 January 2020 15:33 EST

Just like with the OpenGL case the idea is that rather than caching many tiny surfaces for each glyph it should be more efficient to have large surfaces with the glyphs packed inside.

Change-Id: I4bc6ece40d4bc85d373340bd03f959fde3a45abf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86777

b1d3ef798a89 use surface atlas for Skia text drawing on Windows
vcl/Library_vcl.mk | 1 +
vcl/inc/skia/packedsurfaceatlas.hxx | 83 +++++++++++++++++
vcl/inc/skia/win/gdiimpl.hxx | 10 +++
vcl/inc/skia/win/winlayout.hxx | 14 +--
vcl/inc/win/winlayout.hxx | 5 +-
vcl/skia/packedsurfaceatlas.cxx | 175 ++++++++++++++++++++++++++++++++++++
vcl/skia/win/gdiimpl.cxx | 14 ++-
vcl/skia/win/winlayout.cxx | 48 +++++-----
8 files changed, 312 insertions(+), 38 deletions(-)

Upstream: cgit.freedesktop.org


  • Share