From 2b2b63db94ef2fedeba6d6ebb9e829e429a62dbd Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Thu, 31 Oct 2019 21:17:25 +0100 Subject: 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 --- vcl/inc/skia/gdiimpl.hxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'vcl/inc') 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(); -- cgit