summaryrefslogtreecommitdiff
path: root/vcl/inc/headless/SvpGraphicsBackend.hxx
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2021-10-31 11:40:55 +0100
committerTomaž Vajngerl <quikee@gmail.com>2021-12-30 11:47:12 +0100
commitaa4f1be4a9c0161711d3d8a6cdabb7b05f53cf07 (patch)
tree7a8c8bc8b090612f182c2b5c7afd4704fdc40c68 /vcl/inc/headless/SvpGraphicsBackend.hxx
parent70a1f26a5ebb839279f1c7d58ffd9f085bfb1f0b (diff)
vcl: pass CairoCommon to SvpGraphicBackend, move over some methods
SvpGraphicBackend now accepts CairoCommon on construction, as we need it to move over methods. This moves over GetBitCount and GetGraphicsWidth, which also needs the frame size, that is added to CairoCommon. Change-Id: I362c9bed3ef0d85fc51f90a192cc20e06d7a45c0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127704 Tested-by: Tomaž Vajngerl <quikee@gmail.com> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/inc/headless/SvpGraphicsBackend.hxx')
-rw-r--r--vcl/inc/headless/SvpGraphicsBackend.hxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/vcl/inc/headless/SvpGraphicsBackend.hxx b/vcl/inc/headless/SvpGraphicsBackend.hxx
index a21e886abf7f..e927ad9b684b 100644
--- a/vcl/inc/headless/SvpGraphicsBackend.hxx
+++ b/vcl/inc/headless/SvpGraphicsBackend.hxx
@@ -25,10 +25,14 @@
#include <salgdiimpl.hxx>
#include <salgdi.hxx>
+#include <headless/CairoCommon.hxx>
+
class VCL_DLLPUBLIC SvpGraphicsBackend : public SalGraphicsImpl
{
+ CairoCommon& m_rCairoCommon;
+
public:
- SvpGraphicsBackend();
+ SvpGraphicsBackend(CairoCommon& rCairoCommon);
void Init() override;