diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-01-03 20:21:51 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-01-05 10:49:24 +0000 |
commit | 4818e7d8d5b99cc9f74985572c113a10f0bbae3b (patch) | |
tree | 28f5994ec73bd3286717261ba0ba1e837bb0dfc2 /vcl/headless | |
parent | 6effda72259243dab5d3bbe619b2f10244b55164 (diff) |
move hasFastDrawTransformedBitmap into CairoCommon and reuse
Change-Id: I5c70f657fe885da54caf9514bdddf868e9cf8c1d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145029
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/headless')
-rw-r--r-- | vcl/headless/CairoCommon.cxx | 2 | ||||
-rw-r--r-- | vcl/headless/SvpGraphicsBackend.cxx | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/vcl/headless/CairoCommon.cxx b/vcl/headless/CairoCommon.cxx index a43849f18ad1..1b83e20adefa 100644 --- a/vcl/headless/CairoCommon.cxx +++ b/vcl/headless/CairoCommon.cxx @@ -1278,6 +1278,8 @@ cairo_surface_t* CairoCommon::createCairoSurface(const BitmapBuffer* pBuffer) return target; } +bool CairoCommon::hasFastDrawTransformedBitmap() { return false; } + bool CairoCommon::supportsOperation(OutDevSupportType eType) { switch (eType) diff --git a/vcl/headless/SvpGraphicsBackend.cxx b/vcl/headless/SvpGraphicsBackend.cxx index 71734759906d..c41c31f4d360 100644 --- a/vcl/headless/SvpGraphicsBackend.cxx +++ b/vcl/headless/SvpGraphicsBackend.cxx @@ -815,7 +815,10 @@ bool SvpGraphicsBackend::drawTransformedBitmap(const basegfx::B2DPoint& rNull, return true; } -bool SvpGraphicsBackend::hasFastDrawTransformedBitmap() const { return false; } +bool SvpGraphicsBackend::hasFastDrawTransformedBitmap() const +{ + return CairoCommon::hasFastDrawTransformedBitmap(); +} bool SvpGraphicsBackend::drawAlphaRect(tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, sal_uInt8 nTransparency) |