summaryrefslogtreecommitdiff
path: root/boilerplate
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2011-10-26 19:16:17 +0200
committerAndrea Canciani <ranma42@gmail.com>2011-11-12 20:49:08 +0100
commit549b1f8d4bf6e20cecd281343f5e4630938697cc (patch)
treebefe6e6041721462ae7bbb4b7e93d6e3dfa1a3e2 /boilerplate
parentb07b242220daab5b9252d9f0d889886ad74bd31d (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')
-rw-r--r--boilerplate/cairo-boilerplate-cogl.c2
-rw-r--r--boilerplate/cairo-boilerplate-directfb.c1
-rw-r--r--boilerplate/cairo-boilerplate-drm.c1
-rw-r--r--boilerplate/cairo-boilerplate-egl.c1
-rw-r--r--boilerplate/cairo-boilerplate-glx.c3
-rw-r--r--boilerplate/cairo-boilerplate-pdf.c1
-rw-r--r--boilerplate/cairo-boilerplate-ps.c7
-rw-r--r--boilerplate/cairo-boilerplate-qt.cpp1
-rw-r--r--boilerplate/cairo-boilerplate-quartz.c1
-rw-r--r--boilerplate/cairo-boilerplate-script.c1
-rw-r--r--boilerplate/cairo-boilerplate-skia.c1
-rw-r--r--boilerplate/cairo-boilerplate-svg.c7
-rw-r--r--boilerplate/cairo-boilerplate-test-surfaces.c9
-rw-r--r--boilerplate/cairo-boilerplate-vg.c2
-rw-r--r--boilerplate/cairo-boilerplate-wgl.c2
-rw-r--r--boilerplate/cairo-boilerplate-win32-printing.c1
-rw-r--r--boilerplate/cairo-boilerplate-win32.c1
-rw-r--r--boilerplate/cairo-boilerplate-xcb.c5
-rw-r--r--boilerplate/cairo-boilerplate-xlib.c45
-rw-r--r--boilerplate/cairo-boilerplate.c3
-rw-r--r--boilerplate/cairo-boilerplate.h1
21 files changed, 8 insertions, 88 deletions
diff --git a/boilerplate/cairo-boilerplate-cogl.c b/boilerplate/cairo-boilerplate-cogl.c
index 8dda3172..e39ad333 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 be5efb65..a479011d 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 8f043149..214ce50c 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 0e1c9b96..ce0aceb6 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 690844ea..35e81924 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 5173780d..d76d1395 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 53c8cb82..ae61239f 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 bbeea4ab..a559f4fe 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 6b9697a5..d4ca3538 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 f0317440..da8ae3bb 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 2bd31b00..c06e7f05 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 310dc5df..eda2f66c 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 73f25033..293b77ff 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 a49ed5df..ee32b3c6 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 8ae1dcba..90881778 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 0e54512a..c251bbfa 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 f7be6634..7469cc74 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 f9810ee4..979f5b59 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 38c11357..abd1ba98 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 b4b492fc..89ab1ce0 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 b1a1f1cb..461b98b6 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 *