diff options
author | Andrzej Hunt <andrzej.hunt@collabora.com> | 2014-05-25 16:40:47 +0100 |
---|---|---|
committer | Andrzej Hunt <andrzej.hunt@collabora.com> | 2014-06-25 13:04:29 +0100 |
commit | 56fea375b915bb96012b36012634523b9806040a (patch) | |
tree | 291c2de2f0599b2302a95068bda1b98585fc1b51 /include/vcl/virdev.hxx | |
parent | 01bd2bd371051e9dcab0cd15db43a607d5f12b63 (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 'include/vcl/virdev.hxx')
-rw-r--r-- | include/vcl/virdev.hxx | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/include/vcl/virdev.hxx b/include/vcl/virdev.hxx index 74a6174dce40..8c36f52e5f16 100644 --- a/include/vcl/virdev.hxx +++ b/include/vcl/virdev.hxx @@ -43,8 +43,12 @@ private: sal_uInt8 meRefDevMode; SAL_DLLPRIVATE void ImplInitVirDev( const OutputDevice* pOutDev, long nDX, long nDY, sal_uInt16 nBitCount, const SystemGraphicsData *pData = NULL ); - SAL_DLLPRIVATE bool InnerImplSetOutputSizePixel( const Size& rNewSize, bool bErase, const basebmp::RawMemorySharedArray &pBuffer ); - SAL_DLLPRIVATE bool ImplSetOutputSizePixel( const Size& rNewSize, bool bErase, const basebmp::RawMemorySharedArray &pBuffer ); + SAL_DLLPRIVATE bool InnerImplSetOutputSizePixel( const Size& rNewSize, bool bErase, + const basebmp::RawMemorySharedArray &pBuffer, + const bool bTopDown ); + SAL_DLLPRIVATE bool ImplSetOutputSizePixel( const Size& rNewSize, bool bErase, + const basebmp::RawMemorySharedArray &pBuffer, + const bool bTopDown ); // Copy assignment is forbidden and not implemented. VirtualDevice (const VirtualDevice &); @@ -119,7 +123,11 @@ public: virtual void EnableRTL( bool bEnable = true ) SAL_OVERRIDE; bool SetOutputSizePixel( const Size& rNewSize, bool bErase = true ); - bool SetOutputSizePixelScaleOffsetAndBuffer( const Size& rNewSize, const Fraction& rScale, const Point& rNewOffset, const basebmp::RawMemorySharedArray &pBuffer ); + bool SetOutputSizePixelScaleOffsetAndBuffer( const Size& rNewSize, + const Fraction& rScale, + const Point& rNewOffset, + const basebmp::RawMemorySharedArray &pBuffer, + const bool bTopDown = false ); bool SetOutputSize( const Size& rNewSize, bool bErase = true ) { return SetOutputSizePixel( LogicToPixel( rNewSize ), bErase ); } |