diff options
author | Michael Meeks <michael.meeks@novell.com> | 2011-07-12 13:22:10 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2011-07-12 20:34:22 +0100 |
commit | a206e2afb0c4edcaacce9d42b3b15350ec8c25dc (patch) | |
tree | e22932c8e4912fd2358b9ac1fae38b8767cc84c6 /basebmp/inc | |
parent | 22f299b12e1c874a43b38f7efdda0d1b952d09a0 (diff) |
initial cut at damage tracking support
Diffstat (limited to 'basebmp/inc')
-rw-r--r-- | basebmp/inc/basebmp/bitmapdevice.hxx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/basebmp/inc/basebmp/bitmapdevice.hxx b/basebmp/inc/basebmp/bitmapdevice.hxx index e026f3165fbb..5a5436432169 100644 --- a/basebmp/inc/basebmp/bitmapdevice.hxx +++ b/basebmp/inc/basebmp/bitmapdevice.hxx @@ -60,6 +60,11 @@ typedef boost::shared_ptr< const std::vector<Color> > PaletteMemorySharedVecto struct ImplBitmapDevice; +class BitmapDeviceDamageTracker { + public: + virtual void damaged (const basegfx::B2IRange& rDamageRect) = 0; +}; + /** Definition of BitmapDevice interface Use the createBitmapDevice() factory method to create instances. @@ -108,6 +113,8 @@ public: */ RawMemorySharedArray getBuffer() const; + BitmapDeviceDamageTracker *getDamageTracker() const; + /** Get pointer to palette The returned pointer is const on purpose, since the @@ -541,7 +548,8 @@ protected: sal_Int32 nScanlineStride, sal_uInt8* pFirstScanline, const RawMemorySharedArray& rMem, - const PaletteMemorySharedVector& rPalette ); + const PaletteMemorySharedVector& rPalette, + BitmapDeviceDamageTracker* pDamage = NULL ); virtual ~BitmapDevice(); @@ -641,7 +649,8 @@ private: */ BitmapDeviceSharedPtr createBitmapDevice( const basegfx::B2IVector& rSize, bool bTopDown, - sal_Int32 nScanlineFormat ); + sal_Int32 nScanlineFormat, + BitmapDeviceDamageTracker* pDamage = NULL ); /** Factory method to create a BitmapDevice for given scanline format with the given palette |