[Spice-devel] [PATCH 2/2] Add patch fixing performance issue

Christophe Fergeau cfergeau at redhat.com
Mon Oct 5 06:49:06 PDT 2015


On Wed, Aug 05, 2015 at 05:40:36PM +0300, Kirill Moizik wrote:
> From: Kirill Moizik <kmoizik at redhat.com>
> 
> ---
>  cairo-quartz-surface-performance-patch.patch | 61 ++++++++++++++++++++++++++++
>  1 file changed, 61 insertions(+)
>  create mode 100644 cairo-quartz-surface-performance-patch.patch
> 
> diff --git a/cairo-quartz-surface-performance-patch.patch b/cairo-quartz-surface-performance-patch.patch
> new file mode 100644
> index 0000000..0da3243
> --- /dev/null
> +++ b/cairo-quartz-surface-performance-patch.patch
> @@ -0,0 +1,61 @@
> +--- spice-jhbuild/source/cairo-1.14.0/src/cairo-quartz-surface.c	2014-10-14 04:46:33.000000000 +0300
> ++++ spice-jhbuild/source/cairo-1.14.0/src/cairo-quartz-surface_patched.c	2015-08-05 16:29:10.000000000 +0300
> +@@ -35,6 +35,7 @@
> +  */
> + 
> + #define _GNU_SOURCE /* required for RTLD_DEFAULT */
> ++#define PERFORMANCE_FIX
> + #include "cairoint.h"
> + 
> + #include "cairo-quartz-private.h"
> +@@ -229,7 +230,15 @@
> + 				   dataProvider,
> + 				   decode,
> + 				   interpolate);
> +-    } else
> ++    } else {
> ++#ifdef PERFORMANCE_FIX
> ++    CMProfileRef systemMonitorProfile = NULL;
> ++    CMError getProfileErr = CMGetSystemProfile(&systemMonitorProfile);
> ++    if(noErr == getProfileErr) {
> ++        colorSpace = CGColorSpaceCreateWithPlatformColorSpace(systemMonitorProfile);
> ++        CMCloseProfile(systemMonitorProfile);
> ++    }
> ++#endif

This bit looks like what Christian describes in the "OS X Support"
section of
https://blogs.gnome.org/chergert/2015/10/05/post-guadec-catchup/
https://github.com/chergert/cairo/commits/quartz-perf


Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20151005/32bd3f85/attachment.sig>


More information about the Spice-devel mailing list