diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2020-10-14 14:33:28 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2020-10-14 16:02:18 +0200 |
commit | fde7bb6ddc9c2f9b515e1b3aac791635bcf813fa (patch) | |
tree | 3e963087109b377a9e29cca085f5942a86a151cf /vcl/inc/skia/salbmp.hxx | |
parent | be4616d6b49b8c9cf1a90b212b24ead3dabcab6c (diff) |
add unittest for SkiaSalBitmap copy-on-write data sharing
Change-Id: I2e331785d49c55116bf9cb893be25da1067df8ee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104283
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'vcl/inc/skia/salbmp.hxx')
-rw-r--r-- | vcl/inc/skia/salbmp.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/inc/skia/salbmp.hxx b/vcl/inc/skia/salbmp.hxx index 49aabcf69a7f..9edb1d620e3a 100644 --- a/vcl/inc/skia/salbmp.hxx +++ b/vcl/inc/skia/salbmp.hxx @@ -94,6 +94,9 @@ public: bool unittestHasImage() const { return mImage.get(); } bool unittestHasAlphaImage() const { return mAlphaImage.get(); } bool unittestHasEraseColor() const { return mEraseColorSet; } + const sal_uInt8* unittestGetBuffer() const { return mBuffer.get(); } + const SkImage* unittestGetImage() const { return mImage.get(); } + const SkImage* unittestGetAlphaImage() const { return mAlphaImage.get(); } private: // Reset the state to pixel data (resets cached images allocated in GetSkImage()/GetAlphaSkImage()). |