make all Skia drawing GPU-backed, if possible

Desktop / LibreOffice - Luboš Luňák [collabora.com] - 6 December 2019 13:26 EST

This primarily means using SkiaHelper::createSkSurface(), which will create a GPU-backed SkSurface if Vulkan is used, and it is used in place of temporary SkBitmap instances, which are always raster-based.

Change-Id: I3fe35866f962030f464d5c1d1c4bf518c20ee9af Reviewed-on: https://gerrit.libreoffice.org/84562

8fede4e78705 make all Skia drawing GPU-backed, if possible
vcl/inc/skia/gdiimpl.hxx | 9 +--
vcl/inc/skia/salbmp.hxx | 30 ++++----
vcl/inc/skia/utils.hxx | 18 +++++
vcl/skia/SkiaHelper.cxx | 74 ++++++++++++++++++++
vcl/skia/gdiimpl.cxx | 174 +++++++++++++++++++----------------------------
vcl/skia/salbmp.cxx | 164 +++++++++++++++++++++++++-------------------
vcl/skia/win/gdiimpl.cxx | 34 +++++----
7 files changed, 296 insertions(+), 207 deletions(-)

Upstream: cgit.freedesktop.org


  • Share