Rename wait_for_rendering to syncrhonize

We're not using this call both before and after rendering
so the old name just didn't make sense anymore.
This commit is contained in:
Carl Worth 2006-10-16 09:07:40 -07:00
parent 6c95083406
commit 71037f3612
3 changed files with 5 additions and 5 deletions

View file

@ -865,7 +865,7 @@ typedef struct _xlib_target_closure
} xlib_target_closure_t;
static void
boilerplate_xlib_wait_for_rendering (void *closure)
boilerplate_xlib_synchronize (void *closure)
{
xlib_target_closure_t *xtc = closure;
XImage *ximage;
@ -1443,10 +1443,10 @@ cairo_boilerplate_target_t targets[] =
#if CAIRO_HAS_XLIB_SURFACE
{ "xlib", CAIRO_SURFACE_TYPE_XLIB, CAIRO_CONTENT_COLOR_ALPHA, 0,
create_xlib_surface, cairo_surface_write_to_png, cleanup_xlib,
boilerplate_xlib_wait_for_rendering},
boilerplate_xlib_synchronize},
{ "xlib", CAIRO_SURFACE_TYPE_XLIB, CAIRO_CONTENT_COLOR, 0,
create_xlib_surface, cairo_surface_write_to_png, cleanup_xlib,
boilerplate_xlib_wait_for_rendering},
boilerplate_xlib_synchronize},
#endif
#if CAIRO_HAS_PS_SURFACE
{ "ps", CAIRO_SURFACE_TYPE_PS,

View file

@ -119,7 +119,7 @@ typedef struct _cairo_boilerplate_target
cairo_boilerplate_create_surface_t create_surface;
cairo_boilerplate_write_to_png_t write_to_png;
cairo_boilerplate_cleanup_t cleanup;
cairo_boilerplate_wait_t wait_for_rendering;
cairo_boilerplate_wait_t synchronize;
void *closure;
} cairo_boilerplate_target_t;

View file

@ -226,7 +226,7 @@ main (int argc, char *argv[])
perf.size, perf.size,
CAIRO_BOILERPLATE_MODE_PERF,
&target->closure);
cairo_perf_timer_set_synchronize (target->wait_for_rendering,
cairo_perf_timer_set_synchronize (target->synchronize,
target->closure);
perf.cr = cairo_create (surface);