summaryrefslogtreecommitdiff
path: root/vcl/inc/opengl
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2014-11-29 22:14:36 +0000
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-12-02 08:34:52 +0100
commitc31ed7004dfb3e8e37ddeb9fddf0f015b661dd12 (patch)
tree48d3069604bc35122347b6d346649c84f84ef67c /vcl/inc/opengl
parentc22d5338fad383800b35efa458561bb89b604922 (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;