Re: [PATCH 2/2] Add patch fixing performance issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Aug 05, 2015 at 05:40:36PM +0300, Kirill Moizik wrote:
> +@@ -1389,7 +1399,11 @@
> + 			   cairo_operator_t              op)
> + {
> +     CGContextSetShouldAntialias (state->cgDrawContext, state->filter != kCGInterpolationNone);
> ++#ifdef PERFORMANCE_FIX
> ++    CGContextSetInterpolationQuality(state->cgDrawContext, kCGInterpolationNone);
> ++#else   
> +     CGContextSetInterpolationQuality(state->cgDrawContext, state->filter);
> ++#endif
> + 
> +     if (state->action == DO_DIRECT) {
> + 	CGContextFillRect (state->cgDrawContext, state->rect);
> +@@ -1672,7 +1686,12 @@
> + 
> +     state.filter = filter;
> + 
> +-    CGContextSetInterpolationQuality (state.cgMaskContext, filter);
> ++#ifdef PERFORMANCE_FIX
> ++    CGContextSetInterpolationQuality(state.cgDrawContext, kCGInterpolationNone);
> ++#else   
> ++    CGContextSetInterpolationQuality(state.cgDrawContext, filter);
> ++#endif
> ++    
> +     CGContextSetShouldAntialias (state.cgMaskContext, filter != kCGInterpolationNone);
> + 

Is it possible to achieve the same as these 2 hunks at a higher level
through the use of cairo_pattern_set_filter(CAIRO_FILTER_NEAREST) or
cairo_pattern_set_filter(CAIRO_FILTER_FAST) ? It does not seem to be
possible to get kCGInterpolationLow from _cairo_quartz_filter_to_quartz
at this point though.

Christophe

Attachment: pgp65JQHuy4NE.pgp
Description: PGP signature

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]