summaryrefslogtreecommitdiff
path: root/vcl/skia/salbmp.cxx
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2021-11-13 08:30:36 +0100
committerLuboš Luňák <l.lunak@collabora.com>2021-11-16 18:37:06 +0100
commitf33b76b4e675818deae244427cef84c576a1a1f8 (patch)
treefc49a7250cac5da2b00685e9b5219f2c97d73241 /vcl/skia/salbmp.cxx
parentf22e5078cfac93c50ae5169f65450918b34b0e99 (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/skia/salbmp.cxx')
-rw-r--r--vcl/skia/salbmp.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/skia/salbmp.cxx b/vcl/skia/salbmp.cxx
index c064f00ad565..dd96e3ecd094 100644
--- a/vcl/skia/salbmp.cxx
+++ b/vcl/skia/salbmp.cxx
@@ -1339,7 +1339,6 @@ OString SkiaSalBitmap::GetAlphaImageKey() const
return OString::Concat("I") + OString::number(GetAlphaSkImage()->uniqueID());
}
-#ifdef DBG_UTIL
void SkiaSalBitmap::dump(const char* file) const
{
// Use a copy, so that debugging doesn't affect this instance.
@@ -1348,6 +1347,7 @@ void SkiaSalBitmap::dump(const char* file) const
SkiaHelper::dump(copy.GetSkImage(), file);
}
+#ifdef DBG_UTIL
void SkiaSalBitmap::verify() const
{
if (!mBuffer)
@@ -1356,7 +1356,6 @@ void SkiaSalBitmap::verify() const
assert(memcmp(mBuffer.get() + mScanlineSize * mPixelsSize.Height(), CANARY, sizeof(CANARY))
== 0);
}
-
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */