diff options
author | Louis-Francis Ratté-Boulianne <lfrb@collabora.com> | 2014-11-12 13:16:29 -0500 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-11-13 07:54:17 +0100 |
commit | 1aef60fb3fbd5d9ce6521fd861207e6af7bcc5fb (patch) | |
tree | 91353eda7fdca2d802f07e2fcbcf60c3e56906bf /vcl/inc/unx/salgdi.h | |
parent | 9ac5aa94665da9c6b9188716345e79ade00dd0cc (diff) |
vcl: Add support for GPU scaling when no rendering is involved
Change-Id: Id5aa4c1e843d286026a7bcd1297670db467dcbbc
Diffstat (limited to 'vcl/inc/unx/salgdi.h')
-rw-r--r-- | vcl/inc/unx/salgdi.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/vcl/inc/unx/salgdi.h b/vcl/inc/unx/salgdi.h index e3d8a0c085f0..f693ed137db1 100644 --- a/vcl/inc/unx/salgdi.h +++ b/vcl/inc/unx/salgdi.h @@ -32,6 +32,8 @@ #include "sallayout.hxx" #include "vclpluginapi.h" +#include "opengl/contextprovider.hxx" + #include <boost/scoped_ptr.hpp> #include <deque> @@ -60,7 +62,7 @@ namespace basegfx { class B2DTrapezoid; } -class VCLPLUG_GEN_PUBLIC X11SalGraphics : public SalGraphics +class VCLPLUG_GEN_PUBLIC X11SalGraphics : public SalGraphics, public OpenGLContextProvider { friend class ServerFontLayout; friend class X11SalGraphicsImpl; @@ -297,6 +299,9 @@ public: unsigned int w, unsigned int h, int dest_x, int dest_y ); static void releaseGlyphPeer(); + +public: + virtual OpenGLContext* GetOpenGLContext() const SAL_OVERRIDE; }; inline const SalDisplay *X11SalGraphics::GetDisplay() const |