From a073b6133960734b809c1bc93e39a76fdf1e7c15 Mon Sep 17 00:00:00 2001 From: "Armin Le Grand (Collabora)" Date: Mon, 15 Jul 2024 18:55:56 +0200 Subject: CairoSDPR: Direct support for RGBA Gradients (I) Detect where created when a RGBA gradient could be used directly and create a primitive representing that, a PolyPolygonRGBAGradientPrimitive2D. That primitive decomposes to what was created before, so no primitive renderer has to be touched, all will work as before. NOTE: That helper primitive just holds references to what would be created anyways, so one depth step added but not really any additional data. This is the 1st step for direct support, the 2nd is to then detect and use that primitive in SDPR implementations directly. Change-Id: I4f247636ce58a8a1fd1e0df32dabed0d6cc10d0e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170527 Tested-by: Jenkins Reviewed-by: Armin Le Grand --- svx/inc/sdr/primitive2d/sdrdecompositiontools.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'svx/inc') diff --git a/svx/inc/sdr/primitive2d/sdrdecompositiontools.hxx b/svx/inc/sdr/primitive2d/sdrdecompositiontools.hxx index ac65e0eda30f..e504acd41ab6 100644 --- a/svx/inc/sdr/primitive2d/sdrdecompositiontools.hxx +++ b/svx/inc/sdr/primitive2d/sdrdecompositiontools.hxx @@ -47,13 +47,13 @@ namespace drawinglayer::primitive2d Primitive2DReference SVXCORE_DLLPUBLIC createPolyPolygonFillPrimitive( const basegfx::B2DPolyPolygon& rPolyPolygon, const attribute::SdrFillAttribute& rFill, - const attribute::FillGradientAttribute& rFillGradient); + const attribute::FillGradientAttribute& rAlphaGradient); Primitive2DReference SVXCORE_DLLPUBLIC createPolyPolygonFillPrimitive( const basegfx::B2DPolyPolygon& rPolyPolygon, const basegfx::B2DRange& rDefinitionRange, const attribute::SdrFillAttribute& rFill, - const attribute::FillGradientAttribute& rFillGradient); + const attribute::FillGradientAttribute& rAlphaGradient); Primitive2DReference SVXCORE_DLLPUBLIC createPolygonLinePrimitive( const basegfx::B2DPolygon& rPolygon, -- cgit