summaryrefslogtreecommitdiff
path: root/vcl/inc/salbmp.hxx
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2019-09-23 17:51:38 +0200
committerLuboš Luňák <l.lunak@collabora.com>2019-11-27 09:55:06 +0100
commit39621789d09b20859811d622e5d0a899ea493f26 (patch)
tree41fa1e91cadedb24f870a272af44e8d746ca0b14 /vcl/inc/salbmp.hxx
parentc563866116e17a93b5d27e47189501186b194107 (diff)
add .cxx file for SalBitmap
And move the non-trivial virtual UpdateChecksum() there. Change-Id: I6776a51373e375e12f1ec9588a9c49410ae5124a
Diffstat (limited to 'vcl/inc/salbmp.hxx')
-rw-r--r--vcl/inc/salbmp.hxx24
1 files changed, 1 insertions, 23 deletions
diff --git a/vcl/inc/salbmp.hxx b/vcl/inc/salbmp.hxx
index bd2f061cb310..103856dfae26 100644
--- a/vcl/inc/salbmp.hxx
+++ b/vcl/inc/salbmp.hxx
@@ -101,29 +101,7 @@ protected:
bool mbChecksumValid;
protected:
- virtual void updateChecksum() const
- {
- if (mbChecksumValid)
- return;
-
- BitmapChecksum nCrc = 0;
- SalBitmap* pThis = const_cast<SalBitmap*>(this);
- BitmapBuffer* pBuf = pThis->AcquireBuffer(BitmapAccessMode::Read);
- if (pBuf)
- {
- nCrc = pBuf->maPalette.GetChecksum();
- nCrc = vcl_get_checksum(nCrc, pBuf->mpBits, pBuf->mnScanlineSize * pBuf->mnHeight);
- pThis->ReleaseBuffer(pBuf, BitmapAccessMode::Read);
- pThis->mnChecksum = nCrc;
- pThis->mbChecksumValid = true;
- }
- else
- {
- pThis->mbChecksumValid = false;
- }
- }
-
-
+ virtual void updateChecksum() const;
};
#endif