summaryrefslogtreecommitdiff
path: root/vcl/source/outdev
diff options
context:
space:
mode:
authorLouis-Francis Ratté-Boulianne <lfrb@collabora.com>2014-11-12 12:45:36 -0500
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-11-13 07:54:14 +0100
commitf433825259731e6fd0bc666f4d22b2f31dc99fa9 (patch)
treead87450a3cb1d14154d03a89c1ab4d40a922ed5a /vcl/source/outdev
parent8fa5a65792dc109791cbfbf5b8674cd9b65159dd (diff)
vcl: Use single-buffer rendering and only flush when necessary
Change-Id: I832dd6f3647fbb423975fa928a5ec32447225e85
Diffstat (limited to 'vcl/source/outdev')
-rw-r--r--vcl/source/outdev/outdev.cxx13
1 files changed, 9 insertions, 4 deletions
diff --git a/vcl/source/outdev/outdev.cxx b/vcl/source/outdev/outdev.cxx
index 5295fd49925c..af7d6431e57e 100644
--- a/vcl/source/outdev/outdev.cxx
+++ b/vcl/source/outdev/outdev.cxx
@@ -782,11 +782,16 @@ bool OutputDevice::DrawEPS( const Point& rPoint, const Size& rSize,
return bDrawn;
}
-bool OutputDevice::SwapBuffers()
+void OutputDevice::BeginPaint()
{
- if( !mpGraphics && !AcquireGraphics() )
- return false;
- return mpGraphics->SwapBuffers();
+ if( mpGraphics || AcquireGraphics() )
+ mpGraphics->BeginPaint();
+}
+
+void OutputDevice::EndPaint()
+{
+ if( mpGraphics || AcquireGraphics() )
+ mpGraphics->EndPaint();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */