summaryrefslogtreecommitdiff
path: root/vcl/inc/headless/svpframe.hxx
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/inc/headless/svpframe.hxx
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/inc/headless/svpframe.hxx')
-rw-r--r--vcl/inc/headless/svpframe.hxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/vcl/inc/headless/svpframe.hxx b/vcl/inc/headless/svpframe.hxx
index 6a14adf6e1d2..1aec3aafae1f 100644
--- a/vcl/inc/headless/svpframe.hxx
+++ b/vcl/inc/headless/svpframe.hxx
@@ -43,8 +43,11 @@ class SvpSalFrame : public SalFrame
std::list< SvpSalFrame* > m_aChildren; // List of child frames
sal_uLong m_nStyle;
bool m_bVisible;
- bool m_bDamageTracking;
bool m_bTopDown;
+#ifndef IOS
+ basebmp::BitmapDeviceSharedPtr m_aFrame;
+ bool m_bDamageTracking;
+#endif
basebmp::Format m_nScanlineFormat;
long m_nMinWidth;
long m_nMinHeight;
@@ -53,7 +56,6 @@ class SvpSalFrame : public SalFrame
SystemEnvData m_aSystemChildData;
- basebmp::BitmapDeviceSharedPtr m_aFrame;
std::list< SvpSalGraphics* > m_aGraphics;
static SvpSalFrame* s_pFocusFrame;
@@ -71,7 +73,7 @@ public:
void PostPaint(bool bImmediate) const;
void AllocateFrame();
-#if defined IOS || defined ANDROID
+#if defined ANDROID
const basebmp::BitmapDeviceSharedPtr& getDevice() const { return m_aFrame; }
#endif
@@ -125,9 +127,11 @@ public:
virtual void UnionClipRegion( long nX, long nY, long nWidth, long nHeight ) SAL_OVERRIDE;
virtual void EndSetClipRegion() SAL_OVERRIDE;
+#ifndef IOS
// If enabled we can get damage notifications for regions immediately rendered to ...
virtual void enableDamageTracker( bool bOn = true );
virtual void damaged( const basegfx::B2IBox& /* rDamageRect */) {}
+#endif
/*TODO: functional implementation */
virtual void SetScreenNumber( unsigned int nScreen ) SAL_OVERRIDE { (void)nScreen; }