diff options
author | Carl Worth <cworth@cworth.org> | 2006-09-09 20:17:08 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2006-09-11 10:59:38 -0700 |
commit | cb6aed0a816cc5f09bb5660d4961ca196243eb10 (patch) | |
tree | 316cb6651ec9248133194429269f695f8b11f868 /perf/cairo-perf.c | |
parent | e1a8a8b65a41691521d89fba7737c093dfdf7926 (diff) | |
download | cairo-cb6aed0a816cc5f09bb5660d4961ca196243eb10.tar.gz |
perf: Make xlib testing wait for the X server to finish rendering.
We do this by adding a new cairo_perf_timer_set_finalize function and
in the case of the xlib backend passing a callback to that function
that does a 1x1 XGetImage.
Diffstat (limited to 'perf/cairo-perf.c')
-rw-r--r-- | perf/cairo-perf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perf/cairo-perf.c b/perf/cairo-perf.c index 615acc940..976c0dcbc 100644 --- a/perf/cairo-perf.c +++ b/perf/cairo-perf.c @@ -162,6 +162,7 @@ main (int argc, char *argv[]) size, size, CAIRO_BOILERPLATE_MODE_PERF, &target->closure); + cairo_perf_timer_set_finalize (target->wait_for_rendering, target->closure); cr = cairo_create (surface); for (k =0; k < cairo_perf_iterations; k++) { cairo_perf_yield (); |