summaryrefslogtreecommitdiff
path: root/vcl/source/outdev/outdev.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-11-10 08:02:18 +0100
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-11-10 08:02:18 +0100
commitea48707a9d13fe94bfe4947aa28d755d19813456 (patch)
tree56b0878ba4c50efcc247de1b8a1aea8c63289d61 /vcl/source/outdev/outdev.cxx
parent06a5b619a76c96783ee67bdcfd21f203d3ddb53c (diff)
parent730a3ac2daa9ec5774fc7b9482ed1aa94afab67f (diff)
merge initial work on OpenGL vcl backend
The backend builds on Windows, Linux and OSX but still does not render everything perfectly. Based on this initial framework the remaining improvements can be made incrementally in master. Whether the OpenGL code or the normal code is used depends on the OpenGL configuration variable. It currently defaults to false. Additionally we check during runtime if the requirements for running the OpenGL backend are fulfilled.
Diffstat (limited to 'vcl/source/outdev/outdev.cxx')
-rw-r--r--vcl/source/outdev/outdev.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/source/outdev/outdev.cxx b/vcl/source/outdev/outdev.cxx
index 3c9e519cc71d..ad7779dc597d 100644
--- a/vcl/source/outdev/outdev.cxx
+++ b/vcl/source/outdev/outdev.cxx
@@ -839,4 +839,11 @@ bool OutputDevice::DrawEPS( const Point& rPoint, const Size& rSize,
return bDrawn;
}
+bool OutputDevice::SwapBuffers()
+{
+ if( !mpGraphics && !AcquireGraphics() )
+ return false;
+ return mpGraphics->SwapBuffers();
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */