summaryrefslogtreecommitdiffstats
path: root/config_host
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2020-06-24 10:30:01 +0200
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2020-06-26 12:11:43 +0200
commita136218e1e195a8bb79c34b9bf504952d7c60c5c (patch)
tree4784fe7432fd8e19964f6a9e4797a2a78baa9e59 /config_host
parentone more BmpConversion::N8BitNoConversion for alpha hack (diff)
downloadcore-a136218e1e195a8bb79c34b9bf504952d7c60c5c.tar.gz
core-a136218e1e195a8bb79c34b9bf504952d7c60c5c.zip
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> (cherry picked from commit d383e60d23e1620b8e8f6cb7a74c56a8ee6f9900) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97003 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.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 f262161b1a46..26c945b2cd5b 100644
--- a/config_host/config_skia.h.in
+++ b/config_host/config_skia.h.in
@@ -41,6 +41,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).