app: use FAST filter when painting xfer surface

Use CAIRO_FILTER_FAST when painting the xfer surface to the
screen.  This notably improves performance when the canvas is
rotated, at the cost of lower filtering quality.
This commit is contained in:
Ell
2017-12-09 10:34:48 -05:00
parent 6d19e9e860
commit 36258a671a

View File

@ -333,6 +333,7 @@ gimp_display_shell_render (GimpDisplayShell *shell,
cairo_set_source_surface (cr, xfer, cairo_set_source_surface (cr, xfer,
x - xfer_src_x, x - xfer_src_x,
y - xfer_src_y); y - xfer_src_y);
cairo_pattern_set_filter (cairo_get_source (cr), CAIRO_FILTER_FAST);
cairo_paint (cr); cairo_paint (cr);
if (shell->mask) if (shell->mask)