keep just one shared reference to Skia shared GrContext

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

This should make it easier to keep the reference without having to keep references all over the place, especially when the shared GrContext starts to be used also for GPU-backed surfaces elsewhere.

Change-Id: Icf3f6eb849ebc5eb63b1836f9caeb6f5e5e58ca6 Reviewed-on: https://gerrit.libreoffice.org/84560

ea5eb4639ac3 keep just one shared reference to Skia shared GrContext
include/vcl/skia/SkiaHelper.hxx | 34 ++++++++++++------------
vcl/inc/skia/gdiimpl.hxx | 3 +--
vcl/inc/skia/salbmp.hxx | 2 +-
vcl/inc/skia/utils.hxx | 38 +++++++++++++++++++++++++++
vcl/skia/SkiaHelper.cxx | 57 ++++++++++++++++++++++++++++++++++++-----
vcl/skia/gdiimpl.cxx | 14 +++-------
vcl/unx/generic/app/salinst.cxx | 4 +++
vcl/win/app/salinst.cxx | 3 +++
8 files changed, 119 insertions(+), 36 deletions(-)

Upstream: cgit.freedesktop.org


  • Share