summaryrefslogtreecommitdiff
path: root/config_host
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2020-06-24 10:30:01 +0200
committerLuboš Luňák <l.lunak@collabora.com>2020-06-24 12:39:50 +0200
commitf7a1d0063db5292a0ea92a8950ac86000ce399b2 (patch)
tree42fd7191e35208c8b4027ace8493c94b1b7af8a7 /config_host
parentc526769bd63bc492b596f4f1b50b65a59c419fef (diff)
faster Skia SkCanvas::drawImageRect() with an offset
Without this, the drawing avoids the fast path just because the position has an offset, even though it normally works. It seems this should be enabled by default, but it isn't. Change-Id: Ic74a2502af3c8cd58222af8b5cade4e7cbef3c4e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96988 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.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/config_host/config_skia.h.in b/config_host/config_skia.h.in
index 5e24def6beaf..4c1c169c800d 100644
--- a/config_host/config_skia.h.in
+++ b/config_host/config_skia.h.in
@@ -40,6 +40,11 @@ are the same.
#define SK_ASSUME_GL 1
#define SK_ASSUME_GL_ES 0
+// See https://codereview.chromium.org/2089583002 . This makes raster drawing
+// faster in some cases, it was made conditional because of some tests failing,
+// but if I'm reading the review correctly the code is in fact fine and just
+// those tests needed updating, which presumably has never happened.
+#define SK_DRAWBITMAPRECT_FAST_OFFSET 1
// Enable Skia's internal checks depending on DBG_UTIL mode. ENABLE_SKIA_DEBUG
// controls whether to build with or without optimizations (set in Makefile).