[Libreoffice-commits] core.git: config_host/config_skia.h.in

Luboš Luňák (via logerrit) logerrit at kemper.freedesktop.org
Wed Jun 24 10:40:29 UTC 2020


 config_host/config_skia.h.in |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit f7a1d0063db5292a0ea92a8950ac86000ce399b2
Author:     Luboš Luňák <l.lunak at collabora.com>
AuthorDate: Wed Jun 24 10:30:01 2020 +0200
Commit:     Luboš Luňák <l.lunak at collabora.com>
CommitDate: Wed Jun 24 12:39:50 2020 +0200

    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 at collabora.com>

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).


More information about the Libreoffice-commits mailing list