[Spice-devel] [PATCH 24/30] Convert cairo canvas clear() to pixman
Alexander Larsson
alexl at redhat.com
Thu Feb 18 12:58:50 PST 2010
---
common/cairo_canvas.c | 13 +++++--------
1 files changed, 5 insertions(+), 8 deletions(-)
diff --git a/common/cairo_canvas.c b/common/cairo_canvas.c
index 73bd054..60fe2f4 100644
--- a/common/cairo_canvas.c
+++ b/common/cairo_canvas.c
@@ -1994,14 +1994,11 @@ void canvas_group_end(CairoCanvas *canvas)
void canvas_clear(CairoCanvas *canvas)
{
- cairo_t *cairo = canvas->cairo;
-
- ASSERT(cairo);
- cairo_save(cairo);
- cairo_reset_clip(cairo);
- cairo_set_operator(cairo, CAIRO_OPERATOR_CLEAR);
- cairo_paint(cairo);
- cairo_restore(cairo);
+ spice_pixman_fill_rect (canvas->image,
+ 0, 0,
+ pixman_image_get_width (canvas->image),
+ pixman_image_get_height (canvas->image),
+ 0);
}
cairo_t *canvas_get_cairo(CairoCanvas *canvas)
--
1.6.6
More information about the Spice-devel
mailing list