[Libreoffice-commits] core.git: vcl/inc
LuboÅ¡ LuÅák (via logerrit)
logerrit at kemper.freedesktop.org
Tue Sep 8 07:57:52 UTC 2020
vcl/inc/skia/salbmp.hxx | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
New commits:
commit 8e7b83e2805a94ff172d167b4b24d05f630cb765
Author: Luboš Luňák <l.lunak at collabora.com>
AuthorDate: Mon Sep 7 21:34:23 2020 +0200
Commit: Luboš Luňák <l.lunak at collabora.com>
CommitDate: Tue Sep 8 09:57:05 2020 +0200
make SkiaSalBitmap debug also log bit count and palette presence
Change-Id: I68143ae7ed1c55b035999ea5babec6e1b3aa72d9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102210
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak at collabora.com>
diff --git a/vcl/inc/skia/salbmp.hxx b/vcl/inc/skia/salbmp.hxx
index d2599d3e98b5..0a6ed6f1b874 100644
--- a/vcl/inc/skia/salbmp.hxx
+++ b/vcl/inc/skia/salbmp.hxx
@@ -119,9 +119,15 @@ private:
{
if (bitmap == nullptr)
return stream << "(null)";
+ // p - has (non-trivial) palette
// I/i - has SkImage (on GPU/CPU),
// A/a - has alpha SkImage (on GPU/CPU)
- stream << static_cast<const void*>(bitmap) << " " << bitmap->GetSize() << "/";
+ // E - has erase color
+ stream << static_cast<const void*>(bitmap) << " " << bitmap->GetSize() << "x"
+ << bitmap->GetBitCount();
+ if (bitmap->GetBitCount() <= 8 && !bitmap->Palette().IsGreyPalette8Bit())
+ stream << "p";
+ stream << "/";
if (bitmap->mImage)
stream << (bitmap->mImage->isTextureBacked() ? "I" : "i");
if (bitmap->mAlphaImage)
More information about the Libreoffice-commits
mailing list