summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
authorhomeboy445 <akshitsan13@gmail.com>2021-07-22 17:05:33 +0530
committerTomaž Vajngerl <quikee@gmail.com>2021-08-27 05:29:35 +0200
commitc46d2c25ee790d02a97ed6bc7403571a2a0823bd (patch)
tree0cb381ab46112cc405679b27d47770b6ef10e257 /vcl/inc
parent9ed35109abb4179a3ab77498f550b4b9868e9cbc (diff)
backendtest: Test Drawing Bitmap other than 24bpp
This test draws bitmap formats other than 24bpp - namely 32bpp and 8bpp greyscale. Change-Id: I1b21214429be08fc7cf1eb086c2ad8946780f481 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119371 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/test/outputdevice.hxx13
1 files changed, 8 insertions, 5 deletions
diff --git a/vcl/inc/test/outputdevice.hxx b/vcl/inc/test/outputdevice.hxx
index b72206d76cd1..67ae1be876b1 100644
--- a/vcl/inc/test/outputdevice.hxx
+++ b/vcl/inc/test/outputdevice.hxx
@@ -105,16 +105,19 @@ class VCL_DLLPUBLIC OutputDeviceTestBitmap : public OutputDeviceTestCommon
public:
OutputDeviceTestBitmap() = default;
- Bitmap setupDrawTransformedBitmap();
- Bitmap setupDrawBitmap();
- Bitmap setupDrawBitmapExWithAlpha();
- Bitmap setupDrawMask();
- BitmapEx setupDrawBlend();
+ Bitmap setupDrawTransformedBitmap(vcl::PixelFormat aBitmapFormat,
+ bool isBitmapGreyScale = false);
+ Bitmap setupDrawBitmap(vcl::PixelFormat aBitmapFormat, bool isBitmapGreyScale = false);
+ Bitmap setupDrawBitmapExWithAlpha(vcl::PixelFormat aBitmapFormat);
+ Bitmap setupDrawMask(vcl::PixelFormat aBitmapFormat);
+ BitmapEx setupDrawBlend(vcl::PixelFormat aBitmapFormat);
static TestResult checkTransformedBitmap(Bitmap& rBitmap);
static TestResult checkBitmapExWithAlpha(Bitmap& rBitmap);
static TestResult checkMask(Bitmap& rBitmap);
static TestResult checkBlend(const BitmapEx& rBitmap);
+
+ static TestResult checkTransformedBitmap8bppGreyScale(Bitmap& rBitmap);
};
class VCL_DLLPUBLIC OutputDeviceTestAnotherOutDev : public OutputDeviceTestCommon