From 68f3ce381bc4aaeb3217fa252ec69f7a70d806b6 Mon Sep 17 00:00:00 2001 From: Katarina Behrens Date: Thu, 19 Apr 2018 14:20:27 +0200 Subject: Reorganize code to enable derived classes inject SvpSalGraphics or derivative thereof Change-Id: Iea0d5e838de0ea397dcbffd11c33f021d53face2 --- vcl/inc/qt5/Qt5Frame.hxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'vcl/inc') diff --git a/vcl/inc/qt5/Qt5Frame.hxx b/vcl/inc/qt5/Qt5Frame.hxx index e2b9b96936e2..4b0a99113536 100644 --- a/vcl/inc/qt5/Qt5Frame.hxx +++ b/vcl/inc/qt5/Qt5Frame.hxx @@ -44,7 +44,11 @@ class VCLPLUG_QT5_PUBLIC Qt5Frame : public SalFrame std::unique_ptr m_pQImage; std::unique_ptr m_pQt5Graphics; UniqueCairoSurface m_pSurface; - std::unique_ptr m_pSvpGraphics; + std::unique_ptr m_pOurSvpGraphics; + // in base class, this ptr is the same as m_pOurSvpGraphic + // in derived class, it can point to a derivative + // of SvpSalGraphics (which the derived class then owns) + SvpSalGraphics* m_pSvpGraphics; DamageHandler m_aDamageHandler; bool m_bGraphicsInUse; @@ -81,6 +85,7 @@ public: void Damage(sal_Int32 nExtentsX, sal_Int32 nExtentsY, sal_Int32 nExtentsWidth, sal_Int32 nExtentsHeight) const; + virtual void InitSvpSalGraphics( SvpSalGraphics* pSvpSalGraphics ); virtual SalGraphics* AcquireGraphics() override; virtual void ReleaseGraphics(SalGraphics* pGraphics) override; -- cgit