summaryrefslogtreecommitdiff
path: root/vcl/headless
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-04-22 14:37:13 +0300
committerTor Lillqvist <tml@collabora.com>2014-04-22 14:43:55 +0300
commit848ff96d0b3ecca7d9d3c00924aa88bfa5d7d5d5 (patch)
tree2b8d5e950ba67d6789f0fce42c99d17f6e14cc8b /vcl/headless
parentaba9d4ba8bed2ea1ee4cf1da0984da62521bdeed (diff)
With tiled rendering for iOS there is no need for a "frame buffer"
The resulting dropping of the basebmp code reduces app size by 0.7 MB. Change-Id: Id263873ed5c4bb2435d929a1319fedeedb6daa14
Diffstat (limited to 'vcl/headless')
-rw-r--r--vcl/headless/svpframe.cxx12
1 files changed, 9 insertions, 3 deletions
diff --git a/vcl/headless/svpframe.cxx b/vcl/headless/svpframe.cxx
index 8c214453cb38..932abba105b3 100644
--- a/vcl/headless/svpframe.cxx
+++ b/vcl/headless/svpframe.cxx
@@ -32,6 +32,8 @@ using namespace basegfx;
SvpSalFrame* SvpSalFrame::s_pFocusFrame = NULL;
+#ifndef IOS
+
namespace {
/// Decouple SalFrame lifetime from damagetracker lifetime
struct DamageTracker : public basebmp::IBitmapDeviceDamageTracker
@@ -61,6 +63,8 @@ void SvpSalFrame::enableDamageTracker( bool bOn )
m_bDamageTracking = bOn;
}
+#endif
+
SvpSalFrame::SvpSalFrame( SvpSalInstance* pInstance,
SalFrame* pParent,
sal_uLong nSalFrameStyle,
@@ -71,8 +75,10 @@ SvpSalFrame::SvpSalFrame( SvpSalInstance* pInstance,
m_pParent( static_cast<SvpSalFrame*>(pParent) ),
m_nStyle( nSalFrameStyle ),
m_bVisible( false ),
- m_bDamageTracking( false ),
m_bTopDown( bTopDown ),
+#ifndef IOS
+ m_bDamageTracking( false ),
+#endif
m_nScanlineFormat( nScanlineFormat ),
m_nMinWidth( 0 ),
m_nMinHeight( 0 ),
@@ -281,6 +287,7 @@ void SvpSalFrame::SetPosSize( long nX, long nY, long nWidth, long nHeight, sal_u
if( m_nMinHeight > 0 && maGeometry.nHeight < (unsigned int)m_nMinHeight )
maGeometry.nHeight = m_nMinHeight;
}
+#ifndef IOS
B2IVector aFrameSize( maGeometry.nWidth, maGeometry.nHeight );
if( ! m_aFrame.get() || m_aFrame->getSize() != aFrameSize )
{
@@ -296,13 +303,12 @@ void SvpSalFrame::SetPosSize( long nX, long nY, long nWidth, long nHeight, sal_u
for( std::list< SvpSalGraphics* >::iterator it = m_aGraphics.begin();
it != m_aGraphics.end(); ++it )
{
-#ifndef IOS
(*it)->setDevice( m_aFrame );
-#endif
}
}
if( m_bVisible )
m_pInstance->PostEvent( this, NULL, SALEVENT_RESIZE );
+#endif
}
void SvpSalFrame::GetClientSize( long& rWidth, long& rHeight )