[cairo] [PATCH] XCB: implement surface_flush
Ian Osgood
iano at quirkster.com
Tue Jun 20 07:36:57 PDT 2006
From nobody Mon Sep 17 00:00:00 2001
From: Ian Osgood <iano at quirkster.com>
Date: Tue Jun 20 07:31:58 2006 -0700
Subject: [PATCH] XCB: implement surface_flush
---
src/cairo-xcb-surface.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
6e26a55349c1c88e9e04a61766bd0342ba1f6fe5
diff --git a/src/cairo-xcb-surface.c b/src/cairo-xcb-surface.c
index 15e45e8..657509d 100644
--- a/src/cairo-xcb-surface.c
+++ b/src/cairo-xcb-surface.c
@@ -1064,6 +1064,14 @@ _cairo_xcb_surface_get_extents (void
return CAIRO_STATUS_SUCCESS;
}
+static cairo_status_t
+_cairo_xcb_surface_flush (void *abstract_surface)
+{
+ cairo_xcb_surface_t *surface = abstract_surface;
+ XCBFlush (surface->dpy);
+ return CAIRO_STATUS_SUCCESS;
+}
+
static const cairo_surface_backend_t cairo_xcb_surface_backend = {
CAIRO_SURFACE_TYPE_XCB,
_cairo_xcb_surface_create_similar,
@@ -1083,7 +1091,7 @@ static const cairo_surface_backend_t cai
_cairo_xcb_surface_get_extents,
NULL, /* old_show_glyphs */
NULL, /* get_font_options */
- NULL, /* flush */
+ _cairo_xcb_surface_flush,
NULL, /* mark_dirty_rectangle */
NULL, /* scaled_font_fini */
NULL /* scaled_glyph_fini */
--
1.2.3
More information about the cairo
mailing list