summaryrefslogtreecommitdiff
path: root/vcl/inc/salvd.hxx
diff options
context:
space:
mode:
authorAndrzej Hunt <andrzej.hunt@collabora.com>2014-05-25 16:40:47 +0100
committerAndrzej Hunt <andrzej.hunt@collabora.com>2014-06-25 13:04:29 +0100
commit56fea375b915bb96012b36012634523b9806040a (patch)
tree291c2de2f0599b2302a95068bda1b98585fc1b51 /vcl/inc/salvd.hxx
parent01bd2bd371051e9dcab0cd15db43a607d5f12b63 (diff)
Allow passing in external buffers to svp's VirtualDevice.
We also want to be able to set whether or not the buffers should be painted to top down, so add that parameter as necessary (default seems to be false, however e.g. gtk requires this to be true, i.e. needed for tiled rendering). Change-Id: Id98882e4c7f62508ae5a976c0d8df743460a4ab2
Diffstat (limited to 'vcl/inc/salvd.hxx')
-rw-r--r--vcl/inc/salvd.hxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/vcl/inc/salvd.hxx b/vcl/inc/salvd.hxx
index 842429f4d8c3..0cac6397fa19 100644
--- a/vcl/inc/salvd.hxx
+++ b/vcl/inc/salvd.hxx
@@ -40,9 +40,13 @@ public:
virtual bool SetSize( long nNewDX, long nNewDY ) = 0;
// Set new size using a buffer at the given address
- virtual bool SetSizeUsingBuffer( long nNewDX, long nNewDY, const basebmp::RawMemorySharedArray & /* pBuffer */ )
+ virtual bool SetSizeUsingBuffer( long nNewDX, long nNewDY,
+ const basebmp::RawMemorySharedArray & /* pBuffer */,
+ const bool /* bTopDown */
+ )
{
- // Only the headless virtual device has an implementation that uses pBuffer.
+ // Only the headless virtual device has an implementation that uses
+ // pBuffer (and bTopDown).
return SetSize( nNewDX, nNewDY );
}