diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-02-22 10:41:37 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-02-22 10:41:37 +0000 |
commit | 3d499ea901b3a76cd765ddce9f4e7d3acebd1bd3 (patch) | |
tree | e49b7204c313bc2f0387a74e8df08f643f0204be /test/xlib-surface.c | |
parent | 73df8eb8db521585f1ac6abb053843b5717cd27e (diff) | |
download | cairo-3d499ea901b3a76cd765ddce9f4e7d3acebd1bd3.tar.gz |
xlib: Replace obsolete disable-xrender with shiny new device debug interface
As prototyped with xcb.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'test/xlib-surface.c')
-rw-r--r-- | test/xlib-surface.c | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/test/xlib-surface.c b/test/xlib-surface.c index be44b148b..4edc44bc4 100644 --- a/test/xlib-surface.c +++ b/test/xlib-surface.c @@ -136,7 +136,6 @@ do_test (const cairo_test_context_t *ctx, unsigned char *reference_data, unsigned char *test_data, unsigned char *diff_data, - cairo_bool_t use_render, cairo_bool_t use_pixmap, cairo_bool_t set_size, cairo_bool_t offscreen) @@ -184,9 +183,6 @@ do_test (const cairo_test_context_t *ctx, if (! surface_compare_visual_and_format (surface)) return CAIRO_TEST_FAILURE; - if (!use_render) - cairo_boilerplate_xlib_surface_disable_render (surface); - if (set_size) { cairo_xlib_surface_set_size (surface, SIZE, SIZE); @@ -243,13 +239,10 @@ do_test (const cairo_test_context_t *ctx, &result); } - cairo_test_log (ctx, "xlib-surface: %s, %s, %s%s: %s\n", - use_render ? " render" : "no-render", + cairo_test_log (ctx, "xlib-surface: %s, %s, %s: %s\n", set_size ? " size" : "no-size", use_pixmap ? "pixmap" : "window", - use_pixmap ? - " " : - (offscreen ? ", offscreen" : ", onscreen"), + use_pixmap ? " " : (offscreen ? ", offscreen" : ", onscreen"), image_diff_is_failure (&result, 0) ? "FAIL" : "PASS"); if (image_diff_is_failure (&result, 0)) @@ -335,17 +328,7 @@ preamble (cairo_test_context_t *ctx) for (offscreen = 0; offscreen <= 1; offscreen++) { status = do_test (ctx, dpy, reference_data, test_data, diff_data, - 1, use_pixmap, set_size, offscreen); - if (status) - result = status; - } - - for (set_size = 0; set_size <= 1; set_size++) - for (use_pixmap = 0; use_pixmap <= 1; use_pixmap++) - for (offscreen = 0; offscreen <= 1; offscreen++) { - status = do_test (ctx, dpy, - reference_data, test_data, diff_data, - 0, use_pixmap, set_size, offscreen); + use_pixmap, set_size, offscreen); if (status) result = status; } |