summaryrefslogtreecommitdiff
path: root/config_host
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2020-09-23 10:50:57 +0200
committerLuboš Luňák <l.lunak@collabora.com>2020-09-23 12:21:40 +0200
commit6edf8fb2b21aec0295fc71c5bfdd9cd14556e323 (patch)
treed68735df31d9134187d983e71c3b74f69319d209 /config_host
parent8df27fb120fec098db0f5a4cab1bd37ac40e751b (diff)
clarifications on the use of SKIA_USE_BITMAP32
Change-Id: Ia2f80c3dc6ac3e0b16993dde588a4987ce98aa81 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103235 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'config_host')
-rw-r--r--config_host/config_skia.h.in11
1 files changed, 8 insertions, 3 deletions
diff --git a/config_host/config_skia.h.in b/config_host/config_skia.h.in
index ba3d3c6c0a07..db103238d4fc 100644
--- a/config_host/config_skia.h.in
+++ b/config_host/config_skia.h.in
@@ -8,19 +8,24 @@ are the same.
#ifndef CONFIG_SKIA_H
#define CONFIG_SKIA_H
-// This a setting that should be set manually and it affects LO
+// This is a setting that should be set manually and it affects LO
// code rather than Skia itself. It basically controls setting
-// BackendCapabilities::mbSupportsBitmap32.
+// BackendCapabilities::mbSupportsBitmap32, i.e. whether one LO bitmap
+// contains all the 32bits of an image including the alpha (premultiplied).
+//
// Since Skia does not natively support 24bpp, the preferred setup is
// that the setting should be enabled, it makes the code faster and cleaner.
+//
// Unfortunately VCL historically splits alpha into a whole separate
// bitmap and works with 24bpp+8bpp, which is generally more complicated,
// more error-prone and just worse, but that's how LO code has been
// written and so there are many places in LO that expect this and
// do not work correctly with true 32bpp bitmaps.
+//
// So ultimately the 24+8 split should be dumped (preferably in all of LO,
// not just the Skia-related code), but until all of LO works correctly
-// with 32bpp disabling this will avoid such breakages.
+// with 32bpp keep this disabled in order to avoid such breakages.
+
//#define SKIA_USE_BITMAP32 1
#define SKIA_USE_BITMAP32 0