diff options
author | Michael Meeks <michael.meeks@suse.com> | 2012-02-25 14:13:08 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-02-25 14:17:57 +0000 |
commit | 9ab611a652334a98ba7922ee6a53b61bbcc4892f (patch) | |
tree | b12763802820f501f85148b19748538e54227e84 /vcl/inc/headless | |
parent | 7e454a3e3dc7f7f85a623ab6a7afab6f40bccaa6 (diff) |
android: move DamageTracker concept into SvpSalFrame and try to use it
Diffstat (limited to 'vcl/inc/headless')
-rw-r--r-- | vcl/inc/headless/svpframe.hxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vcl/inc/headless/svpframe.hxx b/vcl/inc/headless/svpframe.hxx index 3dd896165b6e..ac8683fcf502 100644 --- a/vcl/inc/headless/svpframe.hxx +++ b/vcl/inc/headless/svpframe.hxx @@ -29,6 +29,7 @@ #ifndef _SVP_SVPFRAME_HXX #include <vcl/sysdata.hxx> +#include <basegfx/range/b2ibox.hxx> #include <salframe.hxx> #include "svpelement.hxx" @@ -45,6 +46,9 @@ class SvpSalFrame : public SalFrame, public SvpElement std::list< SvpSalFrame* > m_aChildren; // List of child frames sal_uLong m_nStyle; bool m_bVisible; + bool m_bDamageTracking; + bool m_bTopDown; + sal_Int32 m_nScanlineFormat; long m_nMinWidth; long m_nMinHeight; long m_nMaxWidth; @@ -60,12 +64,15 @@ public: SvpSalFrame( SvpSalInstance* pInstance, SalFrame* pParent, sal_uLong nSalFrameStyle, + bool bTopDown, + sal_Int32 nScanlineFormat, SystemParentData* pSystemParent = NULL ); virtual ~SvpSalFrame(); void GetFocus(); void LoseFocus(); void PostPaint(bool bImmediate) const; + void AllocateFrame(); // SvpElement virtual const basebmp::BitmapDeviceSharedPtr& getDevice() const { return m_aFrame; } @@ -121,6 +128,10 @@ public: virtual void UnionClipRegion( long nX, long nY, long nWidth, long nHeight ); virtual void EndSetClipRegion(); + // 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 */) {} + /*TODO: functional implementation */ virtual void SetScreenNumber( unsigned int nScreen ) { (void)nScreen; } virtual void SetApplicationID(const rtl::OUString &rApplicationID) { (void) rApplicationID; } |