From e15bb8efe62a4d2ffd1df31b092ca1fdd2743e43 Mon Sep 17 00:00:00 2001 From: Brian Ewins Date: Tue, 6 Mar 2007 00:40:56 +0000 Subject: [PATCH] [quartz] remove unnecessary flushes Removing calls to CGContextFlush; these were slowing down the mac and on other platforms it is up to the client to flush the surface. --- src/cairo-quartz-surface.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/cairo-quartz-surface.c b/src/cairo-quartz-surface.c index f0149de3a..f78e2c075 100644 --- a/src/cairo-quartz-surface.c +++ b/src/cairo-quartz-surface.c @@ -485,8 +485,6 @@ SurfacePatternDrawFunc (void *info, CGContextRef context) flip = TRUE; } - /* this is a 10.4 API, present in 10.3.9 */ - CGContextFlush (quartz_surf->cgContext); img = CGBitmapContextCreateImage (quartz_surf->cgContext); if (!img) { @@ -839,8 +837,6 @@ _cairo_nquartz_surface_finish (void *abstract_surface) ND((stderr, "_cairo_nquartz_surface_finish[%p] cgc: %p\n", surface, surface->cgContext)); - CGContextFlush (surface->cgContext); - /* Restore our saved gstate that we use to reset clipping */ CGContextRestoreGState (surface->cgContext);