vcl/inc/skia/salbmp.hxx | 6 +++++- vcl/skia/salbmp.cxx | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-)
New commits: commit 48c7b7c06b918702eab88b58f05c09a3a4f19928 Author: Noel Grandin <noelgran...@gmail.com> AuthorDate: Wed Apr 23 20:45:14 2025 +0200 Commit: Noel Grandin <noelgran...@gmail.com> CommitDate: Thu Apr 24 12:50:14 2025 +0200 tdf#165595 speedup drawinglayer processing skia images Not really sure why this code is needed here, seems like we could just put it into the SalBitmap base class, there is no actual logic being added. Change-Id: I2103ab392625c1e13e177ebbb753e111639f06a4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184524 Tested-by: Jenkins Reviewed-by: Armin Le Grand <armin.le.gr...@me.com> diff --git a/vcl/inc/skia/salbmp.hxx b/vcl/inc/skia/salbmp.hxx index 639436346d61..ba1328fc0dbe 100644 --- a/vcl/inc/skia/salbmp.hxx +++ b/vcl/inc/skia/salbmp.hxx @@ -28,7 +28,8 @@ #include <SkImage.h> -class VCL_PLUGIN_PUBLIC SkiaSalBitmap final : public SalBitmap +class VCL_PLUGIN_PUBLIC SkiaSalBitmap final : public SalBitmap, + public basegfx::SystemDependentDataHolder { public: SkiaSalBitmap(); @@ -64,6 +65,9 @@ public: virtual bool Erase(const Color& color) override; virtual bool AlphaBlendWith(const SalBitmap& rSalBmp) override; virtual bool Invert() override; + SAL_DLLPRIVATE virtual const basegfx::SystemDependentDataHolder* + accessSystemDependentDataHolder() const override; + #if defined MACOSX || defined IOS virtual CGImageRef CreateWithMask(const SalBitmap& rMask, int nX, int nY, int nWidth, int nHeight) const override; diff --git a/vcl/skia/salbmp.cxx b/vcl/skia/salbmp.cxx index 6dee8b0b5252..db74726bf68b 100644 --- a/vcl/skia/salbmp.cxx +++ b/vcl/skia/salbmp.cxx @@ -515,6 +515,11 @@ bool SkiaSalBitmap::Replace(const Color&, const Color&, sal_uInt8) return false; } +const basegfx::SystemDependentDataHolder* SkiaSalBitmap::accessSystemDependentDataHolder() const +{ + return this; +} + bool SkiaSalBitmap::ConvertToGreyscale() { #ifdef DBG_UTIL