diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-12-21 17:18:37 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-12-21 20:18:30 +0000 |
commit | f2e8422f2fc5753745ef272c621b24b0614c0ec7 (patch) | |
tree | 6f2d04ba24ae630f35660a0872193900eee2ebf4 /include/drawinglayer | |
parent | 3c70cfc93bf196503a59188ac0d7b93f8c1fe4af (diff) |
sync with latest additions to d2dpixelprocessor2d
commit 7d948d5c7edbbfd29a77b97a5101aa43917e5ec2
Date: Tue Dec 20 18:42:42 2022 +0100
SDPR: Add handling/direct rendering of some simple Primitives
Change-Id: If5432ac02f51f4b9194ec5df347f93e11f58959b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144694
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/drawinglayer')
-rw-r--r-- | include/drawinglayer/processor2d/cairopixelprocessor2d.hxx | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/include/drawinglayer/processor2d/cairopixelprocessor2d.hxx b/include/drawinglayer/processor2d/cairopixelprocessor2d.hxx index 326d649da330..c940039abb66 100644 --- a/include/drawinglayer/processor2d/cairopixelprocessor2d.hxx +++ b/include/drawinglayer/processor2d/cairopixelprocessor2d.hxx @@ -30,6 +30,9 @@ class TransformPrimitive2D; class PointArrayPrimitive2D; class MarkerArrayPrimitive2D; class PolygonStrokePrimitive2D; +class LineRectanglePrimitive2D; +class FilledRectanglePrimitive2D; +class SingleLinePrimitive2D; } namespace drawinglayer::processor2d @@ -47,38 +50,29 @@ class DRAWINGLAYER_DLLPUBLIC CairoPixelProcessor2D : public BaseProcessor2D const primitive2d::PolygonHairlinePrimitive2D& rPolygonHairlinePrimitive2D); void processPolyPolygonColorPrimitive2D( const primitive2d::PolyPolygonColorPrimitive2D& rPolyPolygonColorPrimitive2D); -#if 0 void processBitmapPrimitive2D(const primitive2d::BitmapPrimitive2D& rBitmapCandidate); -#endif void processTransparencePrimitive2D(const primitive2d::TransparencePrimitive2D& rTransCandidate); -#if 0 void processUnifiedTransparencePrimitive2D( const primitive2d::UnifiedTransparencePrimitive2D& rTransCandidate); -#endif void processMaskPrimitive2DPixel(const primitive2d::MaskPrimitive2D& rMaskCandidate); void processModifiedColorPrimitive2D( const primitive2d::ModifiedColorPrimitive2D& rModifiedCandidate); void processTransformPrimitive2D(const primitive2d::TransformPrimitive2D& rTransformCandidate); void processPointArrayPrimitive2D(const primitive2d::PointArrayPrimitive2D& rPointArrayCandidate); -#if 0 void processMarkerArrayPrimitive2D(const primitive2d::MarkerArrayPrimitive2D& rMarkerArrayCandidate); void processBackgroundColorPrimitive2D( const primitive2d::BackgroundColorPrimitive2D& rBackgroundColorCandidate); -#endif void processPolygonStrokePrimitive2D( const primitive2d::PolygonStrokePrimitive2D& rPolygonStrokeCandidate); -#if 0 - // common helpers - ID2D1Bitmap* implCreateAlpha_Direct(const primitive2d::TransparencePrimitive2D& rTransCandidate, - const basegfx::B2DRange& rVisibleRange); - ID2D1Bitmap* - implCreateAlpha_B2DBitmap(const primitive2d::TransparencePrimitive2D& rTransCandidate, - const basegfx::B2DRange& rVisibleRange, - D2D1_MATRIX_3X2_F& rMaskScale); -#endif + void processLineRectanglePrimitive2D( + const primitive2d::LineRectanglePrimitive2D& rLineRectanglePrimitive2D); + void processFilledRectanglePrimitive2D( + const primitive2d::FilledRectanglePrimitive2D& rFilledRectanglePrimitive2D); + void + processSingleLinePrimitive2D(const primitive2d::SingleLinePrimitive2D& rSingleLinePrimitive2D); /* the local processor for BasePrimitive2D-Implementation based primitives, called from the common process()-implementation |