diff options
author | Noel Grandin <noelgrandin@collabora.co.uk> | 2025-01-29 15:35:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2025-02-19 17:04:28 +0100 |
commit | 704f61b1bd2c54831c383e34e74315bd6da356e2 (patch) | |
tree | 9767d453dd64d297b0371d09201555d1e0786924 /vcl/headless/svpinst.cxx | |
parent | 4e37feb060c2a5c823d1e762a87bdca09995f480 (diff) |
remove canvas/cairo and canvas/gdi and canvas/directx backends
These were originally created to better support alpha/transparency
in slideshows, but vcl can do that these days.
Mostly, removing these makes the path to better backends (e.g. GDI+)
in vcl considerably easier.
If regressions are detected, it would be better to improve vcl
to perform better, or render better, since that will both fix
the regression and improve other output from LibreOffice.
Also remove various bits of vcl backend that were only being
used by the canvas stuff.
Change-Id: Ic5276d57e696f3dcbeaed2cc149b8fc09c5816f6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181843
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/headless/svpinst.cxx')
-rw-r--r-- | vcl/headless/svpinst.cxx | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/vcl/headless/svpinst.cxx b/vcl/headless/svpinst.cxx index d2a4941321e5..9d9d13c74293 100644 --- a/vcl/headless/svpinst.cxx +++ b/vcl/headless/svpinst.cxx @@ -209,29 +209,6 @@ std::unique_ptr<SalVirtualDevice> SvpSalInstance::CreateVirtualDevice(SalGraphic return xNew; } -std::unique_ptr<SalVirtualDevice> SvpSalInstance::CreateVirtualDevice(SalGraphics& rGraphics, - tools::Long &nDX, tools::Long &nDY, - DeviceFormat /*eFormat*/, - const SystemGraphicsData& rGd) -{ - SvpSalGraphics *pSvpSalGraphics = dynamic_cast<SvpSalGraphics*>(&rGraphics); - assert(pSvpSalGraphics); -#ifndef ANDROID - // tdf#127529 normally pPreExistingTarget is null and we are a true virtualdevice drawing to a backing buffer. - // Occasionally, for canvas/slideshow, pPreExistingTarget is pre-provided as a hack to use the vcl drawing - // apis to render onto a preexisting cairo surface. The necessity for that precedes the use of cairo in vcl proper - cairo_surface_t* pPreExistingTarget = static_cast<cairo_surface_t*>(rGd.pSurface); -#else - //ANDROID case - (void)rGd; - cairo_surface_t* pPreExistingTarget = nullptr; -#endif - std::unique_ptr<SalVirtualDevice> xNew(new SvpSalVirtualDevice(pSvpSalGraphics->getSurface(), pPreExistingTarget)); - if (!xNew->SetSize(nDX, nDY)) - xNew.reset(); - return xNew; -} - cairo_surface_t* get_underlying_cairo_surface(const VirtualDevice& rDevice) { return static_cast<SvpSalVirtualDevice*>(rDevice.mpVirDev.get())->GetSurface(); |