diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-03-29 23:16:23 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-03-30 07:53:41 +0200 |
commit | 62f6e67f6b0986208cf1030e265b51f1bf154bc7 (patch) | |
tree | 0fdc685284f5ab4777e6582b75511157db4d07c8 /vcl | |
parent | b46eed92ce1e30008e0325e4d9f37dbe3d6624a3 (diff) |
IosSalInstance::BlitFrameToBuffer() and RedrawWindows() are unneeded now
Change-Id: I6873461aed7db7b7f06e45556eacb82bcf118aea
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/ios/iosinst.hxx | 11 | ||||
-rw-r--r-- | vcl/ios/iosinst.cxx | 49 |
2 files changed, 0 insertions, 60 deletions
diff --git a/vcl/inc/ios/iosinst.hxx b/vcl/inc/ios/iosinst.hxx index 15ededa5a286..d5d6b8c378ba 100644 --- a/vcl/inc/ios/iosinst.hxx +++ b/vcl/inc/ios/iosinst.hxx @@ -26,12 +26,6 @@ class IosSalFrame; class IosSalInstance : public SvpSalInstance { - void BlitFrameToBuffer(char *pPixelBuffer, - int nPBWidth, int nPBHeight, - int destX, int nDestY, - int nDestWidth, int nDestHeight, - const basebmp::BitmapDeviceSharedPtr& aDev); - public: IosSalInstance( SalYieldMutex *pMutex ); virtual ~IosSalInstance(); @@ -47,11 +41,6 @@ public: SalFrame *getFocusFrame() const; - void RedrawWindows( char *pPixelBuffer, - int nPBWidth, int nPBHeight, - int destX, int nDestY, - int nDestWidth, int nDestHeight); - void damaged( IosSalFrame *frame, const basegfx::B2IBox& rDamageRect); }; diff --git a/vcl/ios/iosinst.cxx b/vcl/ios/iosinst.cxx index 905c0b3113e9..97159180d11f 100644 --- a/vcl/ios/iosinst.cxx +++ b/vcl/ios/iosinst.cxx @@ -40,55 +40,6 @@ public: virtual bool ErrorTrapPop( bool ) { return false; } }; -void IosSalInstance::BlitFrameToBuffer(char *pPixelBuffer, - int nPBWidth, int nPBHeight, - int nDestX, int nDestY, - int nDestWidth, int nDestHeight, - const basebmp::BitmapDeviceSharedPtr& aDev) -{ - // TODO: Cropping (taking all the parameters into account) - (void) nPBHeight; - (void) nDestWidth; - (void) nDestHeight; - - basebmp::RawMemorySharedArray aSrcData = aDev->getBuffer(); - const basegfx::B2IVector aDevSize = aDev->getSize(); - const sal_Int32 nStride = aDev->getScanlineStride(); - const unsigned char *pSrc = aSrcData.get(); - - if (aDev->getScanlineFormat() != basebmp::Format::THIRTYTWO_BIT_TC_MASK_RGBA) - { - SAL_INFO( "vcl.ios", "BlitFrameToBuffer: format is not 32bpp RGBA but " << aDev->getScanlineFormat() ); - return; - } - - for (unsigned int y = 0; y < (unsigned int)aDevSize.getY(); y++) - { - const unsigned char *sp( pSrc + nStride * (aDevSize.getY() - 1 - y) ); - - unsigned char *dp( (unsigned char *)pPixelBuffer + - nPBWidth * 4 * (y + nDestY) + - nDestX * 4 ); - memcpy(dp, sp, aDevSize.getX()*4); - } -} - -void IosSalInstance::RedrawWindows(char *pPixelBuffer, - int nPBWidth, int nPBHeight, - int nDestX, int nDestY, - int nDestWidth, int nDestHeight) -{ - int i = 0; - std::list< SalFrame* >::const_iterator it; - for ( it = getFrames().begin(); it != getFrames().end(); i++, it++ ) - { - SvpSalFrame *pFrame = static_cast<SvpSalFrame *>(*it); - - if (pFrame->IsVisible()) - BlitFrameToBuffer( pPixelBuffer, nPBWidth, nPBHeight, nDestX, nDestY, nDestWidth, nDestHeight, pFrame->getDevice() ); - } -} - void IosSalInstance::damaged( IosSalFrame */* frame */, const basegfx::B2IBox& rDamageRect ) { |