[Libreoffice-commits] core.git: Branch 'libreoffice-7-0' - config_host/config_skia.h.in

Luboš Luňák (via logerrit) logerrit at kemper.freedesktop.org
Fri Jun 26 10:12:16 UTC 2020


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

New commits:
commit a136218e1e195a8bb79c34b9bf504952d7c60c5c
Author:     Luboš Luňák <l.lunak at collabora.com>
AuthorDate: Wed Jun 24 10:30:01 2020 +0200
Commit:     Adolfo Jayme Barrientos <fitojb at ubuntu.com>
CommitDate: Fri Jun 26 12:11:43 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>
    (cherry picked from commit d383e60d23e1620b8e8f6cb7a74c56a8ee6f9900)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97003
    Reviewed-by: Adolfo Jayme Barrientos <fitojb at ubuntu.com>

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


More information about the Libreoffice-commits mailing list