summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
authorLouis-Francis Ratté-Boulianne <lfrb@collabora.com>2014-11-03 11:08:24 -0500
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-11-10 07:58:55 +0100
commit5d236d981298df80cc8fefd09400c43d260940f2 (patch)
treeaf5e8dc4818303b202fc1cc48cbdc78062f6acf3 /vcl/inc
parentcfe8443ba58c984060819dad5a9017c310f11763 (diff)
vcl: Get the OpenGL window size from the frame
Change-Id: Id1b62d1982e56ef073ebb4ab800356d4dee3d742
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/openglgdiimpl.hxx5
-rw-r--r--vcl/inc/salgdiimpl.hxx3
2 files changed, 8 insertions, 0 deletions
diff --git a/vcl/inc/openglgdiimpl.hxx b/vcl/inc/openglgdiimpl.hxx
index cad2c4d3826c..6643546d081f 100644
--- a/vcl/inc/openglgdiimpl.hxx
+++ b/vcl/inc/openglgdiimpl.hxx
@@ -25,11 +25,14 @@
#include <vcl/opengl/OpenGLContext.hxx>
+class SalFrame;
+
class VCL_PLUGIN_PUBLIC OpenGLSalGraphicsImpl : public SalGraphicsImpl
{
private:
OpenGLContext maContext;
+ SalFrame* mpFrame;
SalColor mnLineColor;
SalColor mnFillColor;
@@ -84,6 +87,8 @@ public:
virtual void freeResources() SAL_OVERRIDE;
+ virtual void Init( SalFrame* pFrame ) SAL_OVERRIDE;
+
virtual bool setClipRegion( const vcl::Region& ) SAL_OVERRIDE;
//
// get the depth of the device
diff --git a/vcl/inc/salgdiimpl.hxx b/vcl/inc/salgdiimpl.hxx
index ed4f4ba0caf6..9802a7b6c681 100644
--- a/vcl/inc/salgdiimpl.hxx
+++ b/vcl/inc/salgdiimpl.hxx
@@ -34,6 +34,7 @@
class SalGraphics;
class SalBitmap;
+class SalFrame;
class Gradient;
class VCL_PLUGIN_PUBLIC SalGraphicsImpl
@@ -42,6 +43,8 @@ public:
virtual ~SalGraphicsImpl();
+ virtual void Init( SalFrame* pFrame ) = 0;
+
virtual void freeResources() = 0;
virtual bool setClipRegion( const vcl::Region& ) = 0;