diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2019-10-23 16:04:28 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2019-11-27 09:55:11 +0100 |
commit | 0d9b86d48e98aeb573fe28886edc59689d332a9d (patch) | |
tree | 8f2121650c8cce1c0efa584458f84d887ffca026 /vcl/win/gdi/gdiimpl.cxx | |
parent | 94d79e55056947c62881655efb55b49313a58b5e (diff) |
reimplement supportsOperation() for Skia and OpenGL
The shared X11 implementation depends on XRender, which doesn't make
any sense.
Change-Id: I82f36e0835a993a8b226af211d8635336960d7ec
Diffstat (limited to 'vcl/win/gdi/gdiimpl.cxx')
-rw-r--r-- | vcl/win/gdi/gdiimpl.cxx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/vcl/win/gdi/gdiimpl.cxx b/vcl/win/gdi/gdiimpl.cxx index 6b3cd9024f59..9b7c8bdaebd4 100644 --- a/vcl/win/gdi/gdiimpl.cxx +++ b/vcl/win/gdi/gdiimpl.cxx @@ -2576,4 +2576,23 @@ bool WinSalGraphicsImpl::drawGradient(const tools::PolyPolygon& /*rPolygon*/, return false; } +bool WinSalGraphicsImpl::supportsOperation(OutDevSupportType eType) const +{ + static bool bAllowForTest(true); + bool bRet = false; + + switch (eType) + { + case OutDevSupportType::TransparentRect: + bRet = mrParent.mbVirDev || mrParent.mbWindow; + break; + case OutDevSupportType::B2DDraw: + bRet = bAllowForTest; + break; + default: + break; + } + return bRet; +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |