diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2019-10-31 21:17:25 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2019-11-27 09:55:14 +0100 |
commit | 2b2b63db94ef2fedeba6d6ebb9e829e429a62dbd (patch) | |
tree | 0a845fa96b2f50881b2ab27c7a64e587b12621fa /vcl/inc | |
parent | b106592f5f3a4b28e191c8b061428dfd0152095d (diff) |
skia: use a common drawBitmap in more cases
Add an additional parameter to drawBitmap - blend mode, so we can
also use the same bitmap drawing code for blendBitmap.
Change-Id: Iaa0aff6724c6644d80056097e7477b31c8412b29
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/skia/gdiimpl.hxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vcl/inc/skia/gdiimpl.hxx b/vcl/inc/skia/gdiimpl.hxx index 828f7d916aaf..432f8f2512e5 100644 --- a/vcl/inc/skia/gdiimpl.hxx +++ b/vcl/inc/skia/gdiimpl.hxx @@ -185,8 +185,6 @@ public: virtual bool drawGradient(const tools::PolyPolygon& rPolygon, const Gradient& rGradient) override; - void drawBitmap(const SalTwoRect& rPosAry, const SkBitmap& bitmap); - virtual bool supportsOperation(OutDevSupportType eType) const override; #ifdef DBG_UTIL @@ -194,6 +192,10 @@ public: static void dump(const SkBitmap& bitmap, const char* file); #endif + // Default blend mode for SkPaint is SkBlendMode::kSrcOver + void drawBitmap(const SalTwoRect& rPosAry, const SkBitmap& aBitmap, + SkBlendMode eBlendMode = SkBlendMode::kSrcOver); + protected: // To be called before any drawing. void preDraw(); |