diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2021-11-26 19:53:59 +0100 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2021-12-30 16:20:39 +0100 |
commit | f1cbb458e158c8f62c9c47917f8ab0ef76ba0ced (patch) | |
tree | b5753cb28da0e71eb1f48876a70dd3617115ec97 /vcl/inc/headless | |
parent | c14ca07fdcb7dee9b0099ec9c9ec419affe68779 (diff) |
vcl: move drawLine to SvpGraphicsBackend
Also move getClippedStrokeDamage, AddPolygonToPath, impPixelSnap
to CairoCommon, as it is needed by the move.
Change-Id: I002f0094935e5f5d4836bb973f7cf7bea0218ff2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127710
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/inc/headless')
-rw-r--r-- | vcl/inc/headless/CairoCommon.hxx | 12 | ||||
-rw-r--r-- | vcl/inc/headless/svpgdi.hxx | 1 |
2 files changed, 12 insertions, 1 deletions
diff --git a/vcl/inc/headless/CairoCommon.hxx b/vcl/inc/headless/CairoCommon.hxx index 3642a2361d84..36acef3c659d 100644 --- a/vcl/inc/headless/CairoCommon.hxx +++ b/vcl/inc/headless/CairoCommon.hxx @@ -30,6 +30,7 @@ #include <basegfx/range/b2drange.hxx> #include <basegfx/range/b2irange.hxx> +#include <basegfx/matrix/b2dhommatrix.hxx> //Using formats that match cairo's formats. For android we patch cairo, //which is internal in that case, to swap the rgb components so that @@ -71,6 +72,17 @@ VCL_DLLPUBLIC void dl_cairo_surface_get_device_scale(cairo_surface_t* surface, d VCL_DLLPUBLIC basegfx::B2DRange getFillDamage(cairo_t* cr); VCL_DLLPUBLIC basegfx::B2DRange getClipBox(cairo_t* cr); VCL_DLLPUBLIC basegfx::B2DRange getClippedFillDamage(cairo_t* cr); +VCL_DLLPUBLIC basegfx::B2DRange getClippedStrokeDamage(cairo_t* cr); +VCL_DLLPUBLIC basegfx::B2DRange getStrokeDamage(cairo_t* cr); + +VCL_DLLPUBLIC size_t AddPolygonToPath(cairo_t* cr, const basegfx::B2DPolygon& rPolygon, + const basegfx::B2DHomMatrix& rObjectToDevice, bool bPixelSnap, + bool bPixelSnapHairline); + +VCL_DLLPUBLIC basegfx::B2DPoint impPixelSnap(const basegfx::B2DPolygon& rPolygon, + const basegfx::B2DHomMatrix& rObjectToDevice, + basegfx::B2DHomMatrix& rObjectToDeviceInv, + sal_uInt32 nIndex); enum class PaintMode { diff --git a/vcl/inc/headless/svpgdi.hxx b/vcl/inc/headless/svpgdi.hxx index dc042c499e76..5f5be07a43a5 100644 --- a/vcl/inc/headless/svpgdi.hxx +++ b/vcl/inc/headless/svpgdi.hxx @@ -137,7 +137,6 @@ public: virtual void DrawTextLayout( const GenericSalLayout& ) override; virtual bool supportsOperation( OutDevSupportType ) const override; - virtual void drawLine( tools::Long nX1, tools::Long nY1, tools::Long nX2, tools::Long nY2 ) override; virtual void drawRect( tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight ) override; virtual bool drawPolyPolygon( |