mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-03-09 20:10:40 +01:00
[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:
parent
393908c34d
commit
e15bb8efe6
1 changed files with 0 additions and 4 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue