On Wed, Aug 05, 2015 at 05:40:36PM +0300, Kirill Moizik wrote: > From: Kirill Moizik <kmoizik@xxxxxxxxxx> > > --- > 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
Attachment:
signature.asc
Description: PGP signature
_______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel