summaryrefslogtreecommitdiffstats
path: root/gfx/cairo/pixman-interp.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:32:43 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:32:43 +0000
commit6bf0a5cb5034a7e684dcc3500e841785237ce2dd (patch)
treea68f146d7fa01f0134297619fbe7e33db084e0aa /gfx/cairo/pixman-interp.patch
parentInitial commit. (diff)
downloadthunderbird-59f4b6b6d49b15c5a468f3fe34f3cfa4dd956ce2.tar.xz
thunderbird-59f4b6b6d49b15c5a468f3fe34f3cfa4dd956ce2.zip
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gfx/cairo/pixman-interp.patch')
-rw-r--r--gfx/cairo/pixman-interp.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/gfx/cairo/pixman-interp.patch b/gfx/cairo/pixman-interp.patch
new file mode 100644
index 0000000000..263df0b9d8
--- /dev/null
+++ b/gfx/cairo/pixman-interp.patch
@@ -0,0 +1,31 @@
+diff --git a/gfx/cairo/libpixman/src/pixman-private.h b/gfx/cairo/libpixman/src/pixman-private.h
+--- a/gfx/cairo/libpixman/src/pixman-private.h
++++ b/gfx/cairo/libpixman/src/pixman-private.h
+@@ -1,17 +1,26 @@
+ #ifndef PIXMAN_PRIVATE_H
+ #define PIXMAN_PRIVATE_H
+
+ /*
+ * The defines which are shared between C and assembly code
+ */
+
+-/* bilinear interpolation precision (must be < 8) */
++/* bilinear interpolation precision (must be <= 8) */
++#ifndef MOZILLA_VERSION
++#error "Need mozilla headers"
++#endif
++#ifdef MOZ_GFX_OPTIMIZE_MOBILE
++#define LOW_QUALITY_INTERPOLATION
++#define LOWER_QUALITY_INTERPOLATION
++#define BILINEAR_INTERPOLATION_BITS 4
++#else
+ #define BILINEAR_INTERPOLATION_BITS 7
++#endif
+ #define BILINEAR_INTERPOLATION_RANGE (1 << BILINEAR_INTERPOLATION_BITS)
+
+ /*
+ * C specific part
+ */
+
+ #ifndef __ASSEMBLER__
+