[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.
This commit is contained in:
Brian Ewins 2007-03-06 00:40:56 +00:00
parent 393908c34d
commit e15bb8efe6

View file

@ -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);