diff options
author | Armin Le Grand (Allotropia) <Armin.Le.Grand@me.com> | 2023-03-31 16:05:28 +0200 |
---|---|---|
committer | Armin Le Grand <Armin.Le.Grand@me.com> | 2023-04-02 13:18:59 +0200 |
commit | 389f338da025aa7bc26556a7167cd272b64b77fd (patch) | |
tree | a91f1e446b228f207752c4dea21b6fc85bdf6738 /include/drawinglayer | |
parent | 24a374ebc9da56cc6721e8feaa1e15ba850bf41d (diff) |
SDPR: Use currently added lambda to render Gradients
Change-Id: I9fba920c60690f136cae956dae17e2f5e5081f19
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149839
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
Diffstat (limited to 'include/drawinglayer')
-rw-r--r-- | include/drawinglayer/processor2d/d2dpixelprocessor2d.hxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/drawinglayer/processor2d/d2dpixelprocessor2d.hxx b/include/drawinglayer/processor2d/d2dpixelprocessor2d.hxx index d49dcba63ea1..b627bf2b164b 100644 --- a/include/drawinglayer/processor2d/d2dpixelprocessor2d.hxx +++ b/include/drawinglayer/processor2d/d2dpixelprocessor2d.hxx @@ -46,6 +46,14 @@ class FilledRectanglePrimitive2D; class SingleLinePrimitive2D; class FillGraphicPrimitive2D; class InvertPrimitive2D; +class FillGradientPrimitive2D; +} + +namespace basegfx +{ +class B2DHomMatrix; +class B2DPolyPolygon; +class BColor; } struct ID2D1RenderTarget; @@ -94,6 +102,8 @@ class DRAWINGLAYER_DLLPUBLIC D2DPixelProcessor2D : public BaseProcessor2D void processFillGraphicPrimitive2D( const primitive2d::FillGraphicPrimitive2D& rFillGraphicPrimitive2D); void processInvertPrimitive2D(const primitive2d::InvertPrimitive2D& rInvertPrimitive2D); + void processFillGradientPrimitive2D( + const primitive2d::FillGradientPrimitive2D& rFillGradientPrimitive2D); // common helpers sal::systools::COMReference<ID2D1Bitmap> @@ -102,6 +112,9 @@ class DRAWINGLAYER_DLLPUBLIC D2DPixelProcessor2D : public BaseProcessor2D implCreateAlpha_B2DBitmap(const primitive2d::TransparencePrimitive2D& rTransCandidate, const basegfx::B2DRange& rVisibleRange, D2D1_MATRIX_3X2_F& rMaskScale); + bool drawPolyPolygonColorTransformed(const basegfx::B2DHomMatrix& rTansformation, + const basegfx::B2DPolyPolygon& rPolyPolygon, + const basegfx::BColor& rColor); /* the local processor for BasePrimitive2D-Implementation based primitives, called from the common process()-implementation |