diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-01-02 21:11:38 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-01-04 19:25:29 +0000 |
commit | 06c0b13cbbd1672861ebd898e0e11981c5bb82a8 (patch) | |
tree | 65b68aa26582b1e5c488dd44c00544e9fc7cd2b3 /vcl/headless | |
parent | 0ec1a28b4d43fc78cb5cc4c23dd0e76fd62d5e69 (diff) |
move supportsOperation to CairoCommon
Change-Id: I754080c322ec76ec8e218f8c97b1649eaf922c74
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144974
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/headless')
-rw-r--r-- | vcl/headless/CairoCommon.cxx | 11 | ||||
-rw-r--r-- | vcl/headless/SvpGraphicsBackend.cxx | 8 |
2 files changed, 12 insertions, 7 deletions
diff --git a/vcl/headless/CairoCommon.cxx b/vcl/headless/CairoCommon.cxx index 3a8010f21b59..b79d942709b6 100644 --- a/vcl/headless/CairoCommon.cxx +++ b/vcl/headless/CairoCommon.cxx @@ -1112,6 +1112,17 @@ cairo_surface_t* CairoCommon::createCairoSurface(const BitmapBuffer* pBuffer) return target; } +bool CairoCommon::supportsOperation(OutDevSupportType eType) +{ + switch (eType) + { + case OutDevSupportType::TransparentRect: + case OutDevSupportType::B2DDraw: + return true; + } + return false; +} + std::unique_ptr<BitmapBuffer> FastConvert24BitRgbTo32BitCairo(const BitmapBuffer* pSrc) { if (pSrc == nullptr) diff --git a/vcl/headless/SvpGraphicsBackend.cxx b/vcl/headless/SvpGraphicsBackend.cxx index 355a971b9b01..63e66d9a31e2 100644 --- a/vcl/headless/SvpGraphicsBackend.cxx +++ b/vcl/headless/SvpGraphicsBackend.cxx @@ -993,13 +993,7 @@ bool SvpGraphicsBackend::implDrawGradient(basegfx::B2DPolyPolygon const& rPolyPo bool SvpGraphicsBackend::supportsOperation(OutDevSupportType eType) const { - switch (eType) - { - case OutDevSupportType::TransparentRect: - case OutDevSupportType::B2DDraw: - return true; - } - return false; + return CairoCommon::supportsOperation(eType); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |