summaryrefslogtreecommitdiff
path: root/src/cairo-xcb-connection-render.c
diff options
context:
space:
mode:
authorUli Schlachter <psychon@znc.in>2011-02-28 15:54:02 +0100
committerUli Schlachter <psychon@znc.in>2011-02-28 15:54:02 +0100
commitc0dc933efda7672b07e188a1195821340f911a66 (patch)
treedac6592bf12d617fca4efba1ac7b423f5d1e32e6 /src/cairo-xcb-connection-render.c
parent6cd96f966f94cb4f9bf38f2b2c603068f10b55e8 (diff)
downloadcairo-c0dc933efda7672b07e188a1195821340f911a66.tar.gz
xcb: Remove CAIRO_XCB_RENDER_HAS_COMPOSITE_SPANS
This flag was only ever tested, but never set. Also, there is no X11 server out there which actually supports this. AFAIK it was just an experiment which turned into dead code. Signed-off-by: Uli Schlachter <psychon@znc.in>
Diffstat (limited to 'src/cairo-xcb-connection-render.c')
-rw-r--r--src/cairo-xcb-connection-render.c73
1 files changed, 0 insertions, 73 deletions
diff --git a/src/cairo-xcb-connection-render.c b/src/cairo-xcb-connection-render.c
index b44e3631f..8d95509b0 100644
--- a/src/cairo-xcb-connection-render.c
+++ b/src/cairo-xcb-connection-render.c
@@ -113,79 +113,6 @@ _cairo_xcb_connection_render_trapezoids (cairo_xcb_connection_t *connection,
}
void
-_cairo_xcb_connection_render_spans (cairo_xcb_connection_t *connection,
- xcb_render_picture_t dst,
- int op,
- xcb_render_picture_t src,
- int16_t src_x, int16_t src_y,
- int16_t dst_x, int16_t dst_y,
- int16_t width, int16_t height,
- uint32_t num_spans,
- uint16_t *spans)
-{
- ASSERT_NOT_REACHED;
-#if 0
-#define X_RenderSpans 99
-
- struct {
- uint8_t major;
- uint8_t minor;
- uint16_t length;
- uint8_t op;
- uint8_t pad1;
- uint16_t pad2;
- uint32_t src;
- uint32_t dst;
- int16_t src_x;
- int16_t src_y;
- int16_t dst_x;
- int16_t dst_y;
- uint16_t width;
- uint16_t height;
- } req;
- struct iovec vec[3];
- uint32_t prefix[2];
- uint32_t len = (sizeof (req) + num_spans * sizeof (uint16_t)) >> 2;
-
- req.major = connection->render->major_opcode;
- req.minor = X_RenderSpans;
- req.length = 0;
-
- req.dst = dst;
- req.op = op;
- req.src = src;
- req.src_x = src_x;
- req.src_y = src_y;
- req.dst_x = dst_x;
- req.dst_y = dst_y;
- req.width = width;
- req.height = height;
-
- if (len < connection->root->maximum_request_length) {
- req.length = len;
-
- vec[0].iov_base = &req;
- vec[0].iov_len = sizeof (req);
- vec[1].iov_base = spans;
- vec[1].iov_len = num_spans * sizeof (uint16_t);
-
- _cairo_xcb_connection_write (connection, vec, 2);
- } else {
- prefix[0] = *(uint32_t *) &req;
- prefix[1] = len + 1;
- vec[0].iov_base = prefix;
- vec[0].iov_len = sizeof (prefix);
- vec[1].iov_base = (uint32_t *) &req + 1;
- vec[1].iov_len = sizeof (req) - 4;
- vec[2].iov_base = spans;
- vec[2].iov_len = num_spans * sizeof (uint16_t);
-
- _cairo_xcb_connection_write (connection, vec, 3);
- }
-#endif
-}
-
-void
_cairo_xcb_connection_render_create_glyph_set (cairo_xcb_connection_t *connection,
xcb_render_glyphset_t id,
xcb_render_pictformat_t format)