summaryrefslogtreecommitdiff
path: root/vcl/inc/skia
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2019-09-24 02:18:38 +0200
committerLuboš Luňák <l.lunak@collabora.com>2019-09-24 02:18:38 +0200
commit7fbdcd13217e17326b0227a589cd1b3eddb3b0b5 (patch)
treeccdae6ddd4c43425a9611dc775883452607b78fd /vcl/inc/skia
parentc3c3a3c7ba0e663b8f8c208e5fea728a75504d0e (diff)
Skia alpha handling improvements
CppunitTest_vcl_bitmap_render_test now passes. Change-Id: I88863c63de84f28b5dfeeaf73d3879bc7cbba1b2
Diffstat (limited to 'vcl/inc/skia')
-rw-r--r--vcl/inc/skia/gdiimpl.hxx1
-rw-r--r--vcl/inc/skia/salbmp.hxx8
2 files changed, 9 insertions, 0 deletions
diff --git a/vcl/inc/skia/gdiimpl.hxx b/vcl/inc/skia/gdiimpl.hxx
index af0ce88590c7..190fa19d32ad 100644
--- a/vcl/inc/skia/gdiimpl.hxx
+++ b/vcl/inc/skia/gdiimpl.hxx
@@ -184,6 +184,7 @@ public:
#ifdef DBG_UTIL
void dump(const char* file) const;
+ void dump(const SkBitmap& bitmap, const char* file) const;
#endif
protected:
diff --git a/vcl/inc/skia/salbmp.hxx b/vcl/inc/skia/salbmp.hxx
index 86920ef87e49..543fbb669cf2 100644
--- a/vcl/inc/skia/salbmp.hxx
+++ b/vcl/inc/skia/salbmp.hxx
@@ -64,15 +64,23 @@ public:
// to a 32bpp SkBitmap.
const SkBitmap& GetSkBitmap() const;
+ const SkBitmap& GetAlphaSkBitmap() const;
+
#ifdef DBG_UTIL
void dump(const char* file) const;
#endif
private:
void ResetCachedBitmap();
+#ifdef DBG_UTIL
+ void verify() const;
+#else
+ void verify() const {};
+#endif
// TODO SkSurface?
SkBitmap mBitmap;
+ SkBitmap mAlphaBitmap; // TODO for use as an alpha channel or mask
BitmapPalette mPalette;
int mBitCount; // bpp
Size mSize;