diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2021-08-12 16:08:50 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2021-08-23 14:59:25 +0200 |
commit | 09b16f9f44578182306c47cdabe92a31cc5d3b4c (patch) | |
tree | 8dc5af22989d538e119d8d59dc1d87736a71b858 /vcl/skia/osx | |
parent | 13acc8a5df8db5fa24d72c1d44b35e41e4ca2a7c (diff) |
make SalGeometryProvider available for Aqua VCL backends
This is needed for the Skia backend to know the geometry.
The Mac Skia code now passes most VCL unittests.
Change-Id: I6e35764d95ce821d8e11ed9979e5be75bcf6ff49
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120806
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'vcl/skia/osx')
-rw-r--r-- | vcl/skia/osx/gdiimpl.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/vcl/skia/osx/gdiimpl.cxx b/vcl/skia/osx/gdiimpl.cxx index e15406ea831c..399f8d024f0a 100644 --- a/vcl/skia/osx/gdiimpl.cxx +++ b/vcl/skia/osx/gdiimpl.cxx @@ -30,15 +30,12 @@ AquaSkiaSalGraphicsImpl::AquaSkiaSalGraphicsImpl(AquaSalGraphics& rParent, : SkiaSalGraphicsImpl(rParent, rShared.mpFrame) , AquaGraphicsBackendBase(rShared) { + Init(); // mac code doesn't call Init() } -AquaSkiaSalGraphicsImpl::~AquaSkiaSalGraphicsImpl() { DeInit(); } - -void AquaSkiaSalGraphicsImpl::Init() +AquaSkiaSalGraphicsImpl::~AquaSkiaSalGraphicsImpl() { - // The m_pFrame and m_pVDev pointers are updated late in X11 - // setProvider(mX11Parent.GetGeometryProvider()); - // SkiaSalGraphicsImpl::Init(); + DeInit(); // mac code doesn't call DeInit() } void AquaSkiaSalGraphicsImpl::DeInit() |