diff options
author | Armin Le Grand (allotropia) <armin.le.grand.extern@allotropia.de> | 2022-10-18 17:17:41 +0200 |
---|---|---|
committer | Armin Le Grand <Armin.Le.Grand@me.com> | 2022-10-18 19:38:53 +0200 |
commit | 02bd827f39c1e37baabeea1d83921a37450e8a97 (patch) | |
tree | 0d9c93bb25b7241525ae6ef631acd2e359bcdcf0 /vcl/inc/headless | |
parent | c74133420f6f9b4bc6b414b9c91d54cf8eb3f5af (diff) |
Move access to SystemDependentDataHolder to Bitmap (2)
I was too positive thinking that SalBitmap would be fine,
but it's locked to vcl. To be able to add system-dependent
BitmapBuffering I move the access to Bitmap now. This is
no functional change, but offers the same access as e.g.
B2DPolygon/B2DPolyPolygon offer already.
Also cleaned up usage/access to SystemDependentDataManager
which removes quite some code in constructors and makes
things easier in general.
Change-Id: I2baa40a12479fab0fe66063a018f058c6b8f5597
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141507
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
Diffstat (limited to 'vcl/inc/headless')
-rw-r--r-- | vcl/inc/headless/BitmapHelper.hxx | 7 | ||||
-rw-r--r-- | vcl/inc/headless/CairoCommon.hxx | 3 | ||||
-rw-r--r-- | vcl/inc/headless/svpbmp.hxx | 1 |
3 files changed, 3 insertions, 8 deletions
diff --git a/vcl/inc/headless/BitmapHelper.hxx b/vcl/inc/headless/BitmapHelper.hxx index c86a79239d47..0aed5e3693fc 100644 --- a/vcl/inc/headless/BitmapHelper.hxx +++ b/vcl/inc/headless/BitmapHelper.hxx @@ -52,9 +52,7 @@ private: std::shared_ptr<BitmapHelper> maBitmapHelper; public: - SystemDependentData_BitmapHelper( - basegfx::SystemDependentDataManager& rSystemDependentDataManager, - std::shared_ptr<BitmapHelper> xBitmapHelper); + SystemDependentData_BitmapHelper(std::shared_ptr<BitmapHelper> xBitmapHelper); const std::shared_ptr<BitmapHelper>& getBitmapHelper() const { return maBitmapHelper; }; virtual sal_Int64 estimateUsageInBytes() const override; @@ -66,8 +64,7 @@ private: std::shared_ptr<MaskHelper> maMaskHelper; public: - SystemDependentData_MaskHelper(basegfx::SystemDependentDataManager& rSystemDependentDataManager, - std::shared_ptr<MaskHelper> xMaskHelper); + SystemDependentData_MaskHelper(std::shared_ptr<MaskHelper> xMaskHelper); const std::shared_ptr<MaskHelper>& getMaskHelper() const { return maMaskHelper; }; virtual sal_Int64 estimateUsageInBytes() const override; diff --git a/vcl/inc/headless/CairoCommon.hxx b/vcl/inc/headless/CairoCommon.hxx index e8b1a4927e21..476b031c451b 100644 --- a/vcl/inc/headless/CairoCommon.hxx +++ b/vcl/inc/headless/CairoCommon.hxx @@ -96,8 +96,7 @@ private: std::vector<double> maStroke; public: - SystemDependentData_CairoPath(basegfx::SystemDependentDataManager& rSystemDependentDataManager, - size_t nSizeMeasure, cairo_t* cr, bool bNoJoin, bool bAntiAlias, + SystemDependentData_CairoPath(size_t nSizeMeasure, cairo_t* cr, bool bNoJoin, bool bAntiAlias, const std::vector<double>* pStroke); // MM01 virtual ~SystemDependentData_CairoPath() override; diff --git a/vcl/inc/headless/svpbmp.hxx b/vcl/inc/headless/svpbmp.hxx index 29e730ad4d6f..cd90d23e8e22 100644 --- a/vcl/inc/headless/svpbmp.hxx +++ b/vcl/inc/headless/svpbmp.hxx @@ -61,7 +61,6 @@ public: virtual bool Scale( const double& rScaleX, const double& rScaleY, BmpScaleFlag nScaleFlag ) override; virtual bool Replace( const Color& rSearchColor, const Color& rReplaceColor, sal_uInt8 nTol ) override; -protected: virtual const basegfx::SystemDependentDataHolder* accessSystemDependentDataHolder() const override; }; |