diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2021-11-13 08:30:36 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2021-11-16 18:37:06 +0100 |
commit | f33b76b4e675818deae244427cef84c576a1a1f8 (patch) | |
tree | fc49a7250cac5da2b00685e9b5219f2c97d73241 /vcl/inc/skia | |
parent | f22e5078cfac93c50ae5169f65450918b34b0e99 (diff) |
make SkiaHelper::dump() available also in non-dbgutil builds
They are just a set of small functions, and I sometimes need
to debug optimized builds too.
Change-Id: I6350476e8c7fef85460a88b9e3d56d02213764ea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125310
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'vcl/inc/skia')
-rw-r--r-- | vcl/inc/skia/gdiimpl.hxx | 3 | ||||
-rw-r--r-- | vcl/inc/skia/salbmp.hxx | 3 | ||||
-rw-r--r-- | vcl/inc/skia/utils.hxx | 3 |
3 files changed, 4 insertions, 5 deletions
diff --git a/vcl/inc/skia/gdiimpl.hxx b/vcl/inc/skia/gdiimpl.hxx index 942567fec0f6..abfa89ca8bfa 100644 --- a/vcl/inc/skia/gdiimpl.hxx +++ b/vcl/inc/skia/gdiimpl.hxx @@ -198,9 +198,8 @@ public: virtual bool supportsOperation(OutDevSupportType eType) const override; -#ifdef DBG_UTIL + // Dump contents to a file for debugging. void dump(const char* file) const; -#endif // Default blend mode for SkPaint is SkBlendMode::kSrcOver void drawBitmap(const SalTwoRect& rPosAry, const SkiaSalBitmap& bitmap, diff --git a/vcl/inc/skia/salbmp.hxx b/vcl/inc/skia/salbmp.hxx index b2f452c82979..aa8d245ce741 100644 --- a/vcl/inc/skia/salbmp.hxx +++ b/vcl/inc/skia/salbmp.hxx @@ -88,9 +88,8 @@ public: // Alpha type best suitable for the content. SkAlphaType alphaType() const; -#ifdef DBG_UTIL + // Dump contents to a file for debugging. void dump(const char* file) const; -#endif // These are to be used only by unittests. bool unittestHasBuffer() const { return mBuffer.get(); } diff --git a/vcl/inc/skia/utils.hxx b/vcl/inc/skia/utils.hxx index ed404f7cc3eb..0a17ee81bc4d 100644 --- a/vcl/inc/skia/utils.hxx +++ b/vcl/inc/skia/utils.hxx @@ -194,10 +194,11 @@ inline SkIRect scaleRect(const SkIRect& rect, int scaling) #ifdef DBG_UTIL void prefillSurface(const sk_sp<SkSurface>& surface); +#endif + VCL_DLLPUBLIC void dump(const SkBitmap& bitmap, const char* file); VCL_DLLPUBLIC void dump(const sk_sp<SkImage>& image, const char* file); VCL_DLLPUBLIC void dump(const sk_sp<SkSurface>& surface, const char* file); -#endif VCL_DLLPUBLIC extern uint32_t vendorId; |