summaryrefslogtreecommitdiff
path: root/config_host/config_skia.h.in
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2020-10-02 20:36:27 +0200
committerLuboš Luňák <l.lunak@collabora.com>2020-10-04 11:10:19 +0200
commit138cd28e2605740bbcacd22bac14aeb6bc5763cd (patch)
tree40c50afab06e5cd632b080d2ad8d366c416d0c2a /config_host/config_skia.h.in
parent7f55f453886e6aba9401da5f984db3e4fcf020e1 (diff)
default to BGRA for Skia, even on X11
As that seems to be the X11 setup, at least on my machine. This applies even to Vulkan, as we pass the XVisual to Skia. Change-Id: I2f1ee21c2bcf87bbb3bea7114b3b9a9aa060db13 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103870 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'config_host/config_skia.h.in')
-rw-r--r--config_host/config_skia.h.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/config_host/config_skia.h.in b/config_host/config_skia.h.in
index db103238d4fc..c302dbcca3e6 100644
--- a/config_host/config_skia.h.in
+++ b/config_host/config_skia.h.in
@@ -51,6 +51,10 @@ are the same.
// those tests needed updating, which presumably has never happened.
#define SK_DRAWBITMAPRECT_FAST_OFFSET 1
+// Default to BGRA. Skia already defaults to that on Windows, and it seems
+// the default X11 visual is actually also BGRA.
+#define SK_R32_SHIFT 16
+
// Enable Skia's internal checks depending on DBG_UTIL mode. ENABLE_SKIA_DEBUG
// controls whether to build with or without optimizations (set in Makefile).
#ifdef DBG_UTIL