From 9819660fc447c5d1723960c092394b35d80b2ffb Mon Sep 17 00:00:00 2001 From: "mh0310.choi" Date: Mon, 5 Sep 2016 21:40:07 +0900 Subject: Disable separable convolution - disable PIXMAN_FILTER_SEPARABLE_CONVOLUTION Change-Id: Ib445178c84a0b904bd68267185898158030b2d87 --- packaging/cairo.spec | 18 +++++++++--------- src/cairo-image-source.c | 14 ++++++++++++++ 2 files changed, 23 insertions(+), 9 deletions(-) diff --git a/packaging/cairo.spec b/packaging/cairo.spec index 51c24f797..24759dba5 100644 --- a/packaging/cairo.spec +++ b/packaging/cairo.spec @@ -6,7 +6,6 @@ Name: cairo -#Version: 1.12.16 Version: 1.14.2 Release: 0 License: MPL-1.1 or LGPL-2.1+ @@ -16,7 +15,6 @@ Group: Graphics/Libraries Source: http://cairographics.org/releases/%{name}-%{version}.tar.xz Source99: baselibs.conf Source1001: cairo.manifest -#BuildRequires: libtool BuildRequires: pkg-config BuildRequires: xz BuildRequires: pkgconfig(fontconfig) @@ -144,18 +142,20 @@ NOCONFIGURE=1 ./autogen.sh --enable-svg=yes \ --enable-tee=no \ --enable-ttrace=no \ -%if %{with wayland} && !%{with x} + --disable-gtk-doc \ + --disable-static \ +%if %{with wayland} --disable-xlib \ - --disable-xcb \ -%else + --disable-xcb \ +%endif +%if %{with x} --enable-xlib \ %if %{with cairo_xcb_backend} - --enable-xcb \ + --enable-xcb %endif %endif - --disable-gtk-doc \ - --disable-static -make %{?_smp_mflags} V=1 + +#make %{?_smp_mflags} V=1 %install %make_install diff --git a/src/cairo-image-source.c b/src/cairo-image-source.c index 25cdf9373..d811d4536 100644 --- a/src/cairo-image-source.c +++ b/src/cairo-image-source.c @@ -62,6 +62,8 @@ #define PIXMAN_HAS_ATOMIC_OPS 1 #endif +#define SEPARABLE_CONVOLUTION 0 + #if PIXMAN_HAS_ATOMIC_OPS static pixman_image_t *__pixman_transparent_image; static pixman_image_t *__pixman_black_image; @@ -941,6 +943,10 @@ _pixman_image_set_properties (pixman_image_t *pixman_image, case CAIRO_FILTER_FAST: pixman_filter = PIXMAN_FILTER_FAST; break; + /* In order to prevent performance drop, Disable PIXMAN_FILTER_SEPERABLE_CONVOLTION + * same as cairo 1.12.14 in Tizen2.4 + */ +#if SEPARABLE_CONVOLUTION case CAIRO_FILTER_GOOD: pixman_filter = PIXMAN_FILTER_SEPARABLE_CONVOLUTION; kernel = KERNEL_BOX; @@ -971,6 +977,14 @@ _pixman_image_set_properties (pixman_image_t *pixman_image, else dy = 1.0; } break; +#else + case CAIRO_FILTER_GOOD: + pixman_filter = PIXMAN_FILTER_GOOD; + break; + case CAIRO_FILTER_BEST: + pixman_filter = PIXMAN_FILTER_BEST; + break; +#endif case CAIRO_FILTER_NEAREST: pixman_filter = PIXMAN_FILTER_NEAREST; break; -- cgit v1.2.3