diff options
author | Andrea Canciani <ranma42@gmail.com> | 2011-10-26 19:16:17 +0200 |
---|---|---|
committer | Andrea Canciani <ranma42@gmail.com> | 2011-11-12 20:49:08 +0100 |
commit | 549b1f8d4bf6e20cecd281343f5e4630938697cc (patch) | |
tree | befe6e6041721462ae7bbb4b7e93d6e3dfa1a3e2 /boilerplate | |
parent | b07b242220daab5b9252d9f0d889886ad74bd31d (diff) |
boilerplate: Remove unused thread id parameter
The thread id is not used anymore (it is always == 0), so it can be
removed.
Diffstat (limited to 'boilerplate')
21 files changed, 8 insertions, 88 deletions
diff --git a/boilerplate/cairo-boilerplate-cogl.c b/boilerplate/cairo-boilerplate-cogl.c index 8dda31727..e39ad333d 100644 --- a/boilerplate/cairo-boilerplate-cogl.c +++ b/boilerplate/cairo-boilerplate-cogl.c @@ -66,7 +66,6 @@ _cairo_boilerplate_cogl_create_offscreen_color_surface (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **abstract_closure) { cairo_device_t *device; @@ -116,7 +115,6 @@ _cairo_boilerplate_cogl_create_onscreen_color_surface (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **abstract_closure) { cairo_device_t *device; diff --git a/boilerplate/cairo-boilerplate-directfb.c b/boilerplate/cairo-boilerplate-directfb.c index be5efb652..a479011d9 100644 --- a/boilerplate/cairo-boilerplate-directfb.c +++ b/boilerplate/cairo-boilerplate-directfb.c @@ -175,7 +175,6 @@ _cairo_boilerplate_directfb_create_surface (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { diff --git a/boilerplate/cairo-boilerplate-drm.c b/boilerplate/cairo-boilerplate-drm.c index 8f0431496..214ce50cd 100644 --- a/boilerplate/cairo-boilerplate-drm.c +++ b/boilerplate/cairo-boilerplate-drm.c @@ -42,7 +42,6 @@ _cairo_boilerplate_drm_create_surface (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { cairo_device_t *device; diff --git a/boilerplate/cairo-boilerplate-egl.c b/boilerplate/cairo-boilerplate-egl.c index 0e1c9b965..ce0aceb6c 100644 --- a/boilerplate/cairo-boilerplate-egl.c +++ b/boilerplate/cairo-boilerplate-egl.c @@ -72,7 +72,6 @@ _cairo_boilerplate_egl_create_surface (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { egl_target_closure_t *gltc; diff --git a/boilerplate/cairo-boilerplate-glx.c b/boilerplate/cairo-boilerplate-glx.c index 690844ead..35e819244 100644 --- a/boilerplate/cairo-boilerplate-glx.c +++ b/boilerplate/cairo-boilerplate-glx.c @@ -74,7 +74,6 @@ _cairo_boilerplate_gl_create_surface (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { int rgba_attribs[] = { GLX_RGBA, @@ -151,7 +150,6 @@ _cairo_boilerplate_gl_create_window (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { int rgba_attribs[] = { GLX_RGBA, @@ -232,7 +230,6 @@ _cairo_boilerplate_gl_create_window_db (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { int rgba_attribs[] = { GLX_RGBA, diff --git a/boilerplate/cairo-boilerplate-pdf.c b/boilerplate/cairo-boilerplate-pdf.c index 5173780db..d76d13951 100644 --- a/boilerplate/cairo-boilerplate-pdf.c +++ b/boilerplate/cairo-boilerplate-pdf.c @@ -64,7 +64,6 @@ _cairo_boilerplate_pdf_create_surface (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { pdf_target_closure_t *ptc; diff --git a/boilerplate/cairo-boilerplate-ps.c b/boilerplate/cairo-boilerplate-ps.c index 53c8cb825..ae61239f3 100644 --- a/boilerplate/cairo-boilerplate-ps.c +++ b/boilerplate/cairo-boilerplate-ps.c @@ -82,7 +82,6 @@ _cairo_boilerplate_ps_create_surface (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { ps_target_closure_t *ptc; @@ -144,14 +143,13 @@ _cairo_boilerplate_ps2_create_surface (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { return _cairo_boilerplate_ps_create_surface (name, content, CAIRO_PS_LEVEL_2, width, height, max_width, max_height, - mode, id, + mode, closure); } @@ -163,14 +161,13 @@ _cairo_boilerplate_ps3_create_surface (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { return _cairo_boilerplate_ps_create_surface (name, content, CAIRO_PS_LEVEL_3, width, height, max_width, max_height, - mode, id, + mode, closure); } diff --git a/boilerplate/cairo-boilerplate-qt.cpp b/boilerplate/cairo-boilerplate-qt.cpp index bbeea4ab3..a559f4fe7 100644 --- a/boilerplate/cairo-boilerplate-qt.cpp +++ b/boilerplate/cairo-boilerplate-qt.cpp @@ -60,7 +60,6 @@ _cairo_boilerplate_qt_create_surface (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { qt_closure_t *qtc; diff --git a/boilerplate/cairo-boilerplate-quartz.c b/boilerplate/cairo-boilerplate-quartz.c index 6b9697a5e..d4ca35383 100644 --- a/boilerplate/cairo-boilerplate-quartz.c +++ b/boilerplate/cairo-boilerplate-quartz.c @@ -36,7 +36,6 @@ _cairo_boilerplate_quartz_create_surface (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { cairo_format_t format; diff --git a/boilerplate/cairo-boilerplate-script.c b/boilerplate/cairo-boilerplate-script.c index f03174403..da8ae3bbd 100644 --- a/boilerplate/cairo-boilerplate-script.c +++ b/boilerplate/cairo-boilerplate-script.c @@ -44,7 +44,6 @@ _cairo_boilerplate_script_create_surface (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { script_target_closure_t *ptc; diff --git a/boilerplate/cairo-boilerplate-skia.c b/boilerplate/cairo-boilerplate-skia.c index 2bd31b006..c06e7f054 100644 --- a/boilerplate/cairo-boilerplate-skia.c +++ b/boilerplate/cairo-boilerplate-skia.c @@ -11,7 +11,6 @@ _cairo_boilerplate_skia_create_surface (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { cairo_format_t format; diff --git a/boilerplate/cairo-boilerplate-svg.c b/boilerplate/cairo-boilerplate-svg.c index 310dc5df1..eda2f66ca 100644 --- a/boilerplate/cairo-boilerplate-svg.c +++ b/boilerplate/cairo-boilerplate-svg.c @@ -62,7 +62,6 @@ _cairo_boilerplate_svg_create_surface (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { svg_target_closure_t *ptc; @@ -117,7 +116,6 @@ _cairo_boilerplate_svg11_create_surface (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { /* current default, but be explicit in case the default changes */ @@ -125,7 +123,7 @@ _cairo_boilerplate_svg11_create_surface (const char *name, CAIRO_SVG_VERSION_1_1, width, height, max_width, max_height, - mode, id, + mode, closure); } @@ -137,14 +135,13 @@ _cairo_boilerplate_svg12_create_surface (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { return _cairo_boilerplate_svg_create_surface (name, content, CAIRO_SVG_VERSION_1_2, width, height, max_width, max_height, - mode, id, + mode, closure); } diff --git a/boilerplate/cairo-boilerplate-test-surfaces.c b/boilerplate/cairo-boilerplate-test-surfaces.c index 73f250330..293b77fff 100644 --- a/boilerplate/cairo-boilerplate-test-surfaces.c +++ b/boilerplate/cairo-boilerplate-test-surfaces.c @@ -44,7 +44,6 @@ _cairo_boilerplate_test_base_compositor_create_surface (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { *closure = NULL; @@ -60,7 +59,6 @@ _cairo_boilerplate_test_fallback_compositor_create_surface (const char *name double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { *closure = NULL; @@ -75,7 +73,6 @@ _cairo_boilerplate_test_mask_compositor_create_surface (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { *closure = NULL; @@ -91,7 +88,6 @@ _cairo_boilerplate_test_traps_compositor_create_surface (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { *closure = NULL; @@ -106,7 +102,6 @@ _cairo_boilerplate_test_spans_compositor_create_surface (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { *closure = NULL; @@ -121,7 +116,6 @@ _cairo_boilerplate_test_no_fallback_compositor_create_surface (const char *n double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { if (mode == CAIRO_BOILERPLATE_MODE_TEST) @@ -139,7 +133,6 @@ _cairo_boilerplate_test_no_traps_compositor_create_surface (const char *name double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { if (mode == CAIRO_BOILERPLATE_MODE_TEST) @@ -157,7 +150,6 @@ _cairo_boilerplate_test_no_spans_compositor_create_surface (const char *name double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { if (mode == CAIRO_BOILERPLATE_MODE_TEST) @@ -182,7 +174,6 @@ _cairo_boilerplate_test_paginated_create_surface (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { test_paginated_closure_t *tpc; diff --git a/boilerplate/cairo-boilerplate-vg.c b/boilerplate/cairo-boilerplate-vg.c index a49ed5dfd..ee32b3c62 100644 --- a/boilerplate/cairo-boilerplate-vg.c +++ b/boilerplate/cairo-boilerplate-vg.c @@ -78,7 +78,6 @@ _cairo_boilerplate_vg_create_surface_glx (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { int rgba_attribs[] = { @@ -207,7 +206,6 @@ _cairo_boilerplate_vg_create_surface_egl (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { int rgba_attribs[] = { diff --git a/boilerplate/cairo-boilerplate-wgl.c b/boilerplate/cairo-boilerplate-wgl.c index 8ae1dcba0..908817788 100644 --- a/boilerplate/cairo-boilerplate-wgl.c +++ b/boilerplate/cairo-boilerplate-wgl.c @@ -109,7 +109,6 @@ _cairo_boilerplate_wgl_create_surface (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { wgl_target_closure_t *wgltc; @@ -146,7 +145,6 @@ _cairo_boilerplate_wgl_for_create_window (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { wgl_target_closure_t *wgltc; diff --git a/boilerplate/cairo-boilerplate-win32-printing.c b/boilerplate/cairo-boilerplate-win32-printing.c index 0e54512ae..c251bbfa0 100644 --- a/boilerplate/cairo-boilerplate-win32-printing.c +++ b/boilerplate/cairo-boilerplate-win32-printing.c @@ -169,7 +169,6 @@ _cairo_boilerplate_win32_printing_create_surface (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { win32_target_closure_t *ptc; diff --git a/boilerplate/cairo-boilerplate-win32.c b/boilerplate/cairo-boilerplate-win32.c index f7be6634e..7469cc749 100644 --- a/boilerplate/cairo-boilerplate-win32.c +++ b/boilerplate/cairo-boilerplate-win32.c @@ -36,7 +36,6 @@ _cairo_boilerplate_win32_create_surface (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { cairo_format_t format; diff --git a/boilerplate/cairo-boilerplate-xcb.c b/boilerplate/cairo-boilerplate-xcb.c index f9810ee48..979f5b590 100644 --- a/boilerplate/cairo-boilerplate-xcb.c +++ b/boilerplate/cairo-boilerplate-xcb.c @@ -245,7 +245,6 @@ _cairo_boilerplate_xcb_create_surface (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { xcb_screen_t *root; @@ -394,7 +393,6 @@ _cairo_boilerplate_xcb_create_window (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { xcb_target_closure_t *xtc; @@ -471,7 +469,6 @@ _cairo_boilerplate_xcb_create_window_db (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { xcb_target_closure_t *xtc; @@ -549,7 +546,6 @@ _cairo_boilerplate_xcb_create_render_0_0 (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { xcb_screen_t *root; @@ -651,7 +647,6 @@ _cairo_boilerplate_xcb_create_fallback (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { xcb_target_closure_t *xtc; diff --git a/boilerplate/cairo-boilerplate-xlib.c b/boilerplate/cairo-boilerplate-xlib.c index 38c113575..abd1ba989 100644 --- a/boilerplate/cairo-boilerplate-xlib.c +++ b/boilerplate/cairo-boilerplate-xlib.c @@ -280,7 +280,6 @@ _cairo_boilerplate_xlib_create_surface (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { xlib_target_closure_t *xtc; @@ -323,13 +322,11 @@ _cairo_boilerplate_xlib_window_create_surface (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { xlib_target_closure_t *xtc; Display *dpy; - Screen *scr; - int screen, x, y; + int screen; XSetWindowAttributes attr; cairo_surface_t *surface; @@ -374,25 +371,9 @@ _cairo_boilerplate_xlib_window_create_surface (const char *name, return NULL; } - /* tile the windows so threads do not overlap */ - scr = XScreenOfDisplay (dpy, screen); - x = 10; y = 15; - if (id-- > 1) do { - x += max_width; - if (x + max_width > WidthOfScreen (scr)) { - x = 10; - y += max_height; - if (y + max_height > HeightOfScreen (scr)) { - XCloseDisplay (dpy); - free (xtc); - return NULL; - } - } - } while (--id); - attr.override_redirect = True; xtc->drawable = XCreateWindow (dpy, DefaultRootWindow (dpy), - x, y, + 0, 0, width, height, 0, DefaultDepth (dpy, screen), InputOutput, @@ -475,13 +456,11 @@ _cairo_boilerplate_xlib_fallback_create_surface (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { xlib_target_closure_t *xtc; Display *dpy; - Screen *scr; - int screen, x, y; + int screen; XSetWindowAttributes attr; cairo_surface_t *surface; @@ -526,25 +505,9 @@ _cairo_boilerplate_xlib_fallback_create_surface (const char *name, return NULL; } - /* tile the windows so threads do not overlap */ - scr = XScreenOfDisplay (dpy, screen); - x = y = 0; - if (id-- > 1) do { - x += max_width; - if (x + max_width > WidthOfScreen (scr)) { - x = 0; - y += max_height; - if (y + max_height > HeightOfScreen (scr)) { - XCloseDisplay (dpy); - free (xtc); - return NULL; - } - } - } while (--id); - attr.override_redirect = True; xtc->drawable = XCreateWindow (dpy, DefaultRootWindow (dpy), - x, y, + 0, 0, width, height, 0, DefaultDepth (dpy, screen), InputOutput, diff --git a/boilerplate/cairo-boilerplate.c b/boilerplate/cairo-boilerplate.c index b4b492fc1..89ab1ce03 100644 --- a/boilerplate/cairo-boilerplate.c +++ b/boilerplate/cairo-boilerplate.c @@ -132,7 +132,6 @@ _cairo_boilerplate_image_create_surface (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { cairo_format_t format; @@ -188,7 +187,6 @@ _cairo_boilerplate_image16_create_surface (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { *closure = NULL; @@ -243,7 +241,6 @@ _cairo_boilerplate_recording_create_surface (const char *name, double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure) { cairo_rectangle_t extents; diff --git a/boilerplate/cairo-boilerplate.h b/boilerplate/cairo-boilerplate.h index b1a1f1cbd..461b98b69 100644 --- a/boilerplate/cairo-boilerplate.h +++ b/boilerplate/cairo-boilerplate.h @@ -124,7 +124,6 @@ typedef cairo_surface_t * double max_width, double max_height, cairo_boilerplate_mode_t mode, - int id, void **closure); typedef cairo_surface_t * |