summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-10-29 17:25:55 +0100
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-11-10 07:58:28 +0100
commit80ff016d5687b4396a5d60f1ff3c5cb3d61d8e1c (patch)
tree925f931dfa89d46841fdb291525b0cc57509f47c /vcl/inc
parent580574dfa4f06cd6f874958dbeba3ba359119d8c (diff)
bring the gradient rendering down into SalGraphicsImpl & unx backend
Change-Id: Ia5d5e7d996b4a8818e73f3f741907ff9224f93da
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/openglgdiimpl.hxx2
-rw-r--r--vcl/inc/salgdiimpl.hxx3
-rw-r--r--vcl/inc/unx/salgdi.h2
3 files changed, 5 insertions, 2 deletions
diff --git a/vcl/inc/openglgdiimpl.hxx b/vcl/inc/openglgdiimpl.hxx
index 1a3b6e746d38..9ae84ca9706d 100644
--- a/vcl/inc/openglgdiimpl.hxx
+++ b/vcl/inc/openglgdiimpl.hxx
@@ -191,6 +191,8 @@ public:
long nX, long nY,
long nWidth, long nHeight,
sal_uInt8 nTransparency ) SAL_OVERRIDE;
+
+ virtual bool drawGradient(const tools::PolyPolygon& rPolygon, const Gradient& rGradient) SAL_OVERRIDE;
private:
};
diff --git a/vcl/inc/salgdiimpl.hxx b/vcl/inc/salgdiimpl.hxx
index 329f3bb8c68e..ed4f4ba0caf6 100644
--- a/vcl/inc/salgdiimpl.hxx
+++ b/vcl/inc/salgdiimpl.hxx
@@ -34,6 +34,7 @@
class SalGraphics;
class SalBitmap;
+class Gradient;
class VCL_PLUGIN_PUBLIC SalGraphicsImpl
{
@@ -197,7 +198,7 @@ public:
long nWidth, long nHeight,
sal_uInt8 nTransparency ) = 0;
-
+ virtual bool drawGradient(const tools::PolyPolygon& rPolygon, const Gradient& rGradient) = 0;
};
#endif
diff --git a/vcl/inc/unx/salgdi.h b/vcl/inc/unx/salgdi.h
index 73ca07b7413e..4696ce2382f6 100644
--- a/vcl/inc/unx/salgdi.h
+++ b/vcl/inc/unx/salgdi.h
@@ -237,7 +237,7 @@ public:
const ::basegfx::B2DVector& rLineWidth,
basegfx::B2DLineJoin,
com::sun::star::drawing::LineCap) SAL_OVERRIDE;
- virtual bool drawGradient( const tools::PolyPolygon&, const Gradient& ) SAL_OVERRIDE { return false; };
+ virtual bool drawGradient( const tools::PolyPolygon&, const Gradient& ) SAL_OVERRIDE;
#if 1 // TODO: remove these obselete methods
virtual bool drawPolyLineBezier( sal_uInt32 nPoints,