summaryrefslogtreecommitdiff
path: root/vcl/inc/opengl
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2014-11-29 22:14:36 +0000
committerJan Holesovsky <kendy@collabora.com>2014-12-02 15:47:31 +0100
commitde70fa4bb738151ecb8252288d2d51e054a7858b (patch)
treef0e3bd1db5e9ef635fce576b94bda3a2ed9ed10a /vcl/inc/opengl
parentc662b1ea318a02747197005ac6547b92d191aab3 (diff)
vcl: create a GeometryProvider interface.
Implemented by both SalFrame and SalVirtualDevice, to help us to un-tangle code that needs to operate on resources associated with both of these without special cases. Change-Id: If681a002647e20c57186577fe039d4ac85bba872
Diffstat (limited to 'vcl/inc/opengl')
-rw-r--r--vcl/inc/opengl/x11/salvd.hxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/vcl/inc/opengl/x11/salvd.hxx b/vcl/inc/opengl/x11/salvd.hxx
index 7696e04c62ac..7f5f1f5d1a7c 100644
--- a/vcl/inc/opengl/x11/salvd.hxx
+++ b/vcl/inc/opengl/x11/salvd.hxx
@@ -36,10 +36,12 @@ public:
const SystemGraphicsData *pData );
virtual ~X11OpenGLSalVirtualDevice();
+ // SalGeometryProvider
+ virtual long GetWidth() const SAL_OVERRIDE { return mnWidth; }
+ virtual long GetHeight() const SAL_OVERRIDE { return mnHeight; }
+
SalDisplay * GetDisplay() const { return mpDisplay; }
sal_uInt16 GetDepth() const { return mnDepth; }
- int GetWidth() const { return mnWidth; }
- int GetHeight() const { return mnHeight; }
SalX11Screen GetXScreenNumber() const { return mnXScreen; }
virtual SalGraphics* AcquireGraphics() SAL_OVERRIDE;