vcl: move GenPspGraphics into a subclass of SalGraphicsImpl

Desktop / LibreOffice - Tomaž Vajngerl [collabora.co.uk] - 5 April 2021 05:44 UTC

This is an effort to make SalGraphicsImpl mandatory for all backends. So we can rearange the interfaces of backends to a more logical structure, where we can have multiple graphic rendering backends for an VCL (windowing) backend (like we already do for Windows with GDI and skia backends).

In this case we changed GenPspGraphics, introduced a new GFX backend "GenPspGfxBackend" - a subclass of SalGraphicsImpl, and moved the graphic functions into it.

Change-Id: I148b460ff71c3e6b7548e9e2b933390151b6d82f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113593

40e007a7de0d vcl: move GenPspGraphics into a subclass of SalGraphicsImpl
vcl/Library_vcl.mk | 1 +
vcl/inc/unx/GenPspGfxBackend.hxx | 126 +++++++++
vcl/inc/unx/genpspgraphics.h | 14 +-
vcl/unx/generic/print/GenPspGfxBackend.cxx | 412 +++++++++++++++++++++++++++++
vcl/unx/generic/print/genpspgraphics.cxx | 388 ++++++++-------------------
5 files changed, 654 insertions(+), 287 deletions(-)

Upstream: cgit.freedesktop.org


  • Share