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/inc | |
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/inc')
-rw-r--r-- | vcl/inc/opengl/gdiimpl.hxx | 2 | ||||
-rw-r--r-- | vcl/inc/salgdiimpl.hxx | 3 | ||||
-rw-r--r-- | vcl/inc/skia/gdiimpl.hxx | 2 |
3 files changed, 7 insertions, 0 deletions
diff --git a/vcl/inc/opengl/gdiimpl.hxx b/vcl/inc/opengl/gdiimpl.hxx index b0b1de88b185..95e3aa261472 100644 --- a/vcl/inc/opengl/gdiimpl.hxx +++ b/vcl/inc/opengl/gdiimpl.hxx @@ -377,6 +377,8 @@ public: virtual bool drawGradient(const tools::PolyPolygon& rPolygon, const Gradient& rGradient) override; + virtual bool supportsOperation(OutDevSupportType eType) const override; + /// queue an idle flush of contents of the back-buffer to the screen void flush(); diff --git a/vcl/inc/salgdiimpl.hxx b/vcl/inc/salgdiimpl.hxx index 0deb2b8612d3..2a314ed207c1 100644 --- a/vcl/inc/salgdiimpl.hxx +++ b/vcl/inc/salgdiimpl.hxx @@ -27,6 +27,7 @@ #include <vcl/salgtype.hxx> #include <vcl/region.hxx> +#include <vcl/vclenum.hxx> #include <com/sun/star/drawing/LineCap.hpp> @@ -200,6 +201,8 @@ public: sal_uInt8 nTransparency ) = 0; virtual bool drawGradient(const tools::PolyPolygon& rPolygon, const Gradient& rGradient) = 0; + + virtual bool supportsOperation(OutDevSupportType eType) const = 0; }; #endif diff --git a/vcl/inc/skia/gdiimpl.hxx b/vcl/inc/skia/gdiimpl.hxx index ee9b00ad4ce8..d0cd0dc2d52b 100644 --- a/vcl/inc/skia/gdiimpl.hxx +++ b/vcl/inc/skia/gdiimpl.hxx @@ -187,6 +187,8 @@ public: void drawBitmap(const SalTwoRect& rPosAry, const SkBitmap& bitmap); + virtual bool supportsOperation(OutDevSupportType eType) const override; + #ifdef DBG_UTIL void dump(const char* file) const; static void dump(const SkBitmap& bitmap, const char* file); |