commit aa44529

Michael Forney  ·  2013-07-25 05:22:40 +0000 UTC
parent 8669757
Remove default_flush
3 files changed,  +6, -10
+0, -4
 1@@ -37,10 +37,6 @@ void default_fill_rectangles(struct wld_drawable * drawable, uint32_t color,
 2         wld_fill_rectangle(drawable, color, &rectangles[num_rectangles]);
 3 }
 4 
 5-void default_flush(struct wld_drawable * drawable)
 6-{
 7-}
 8-
 9 void wld_fill_rectangle(struct wld_drawable * drawable, uint32_t color,
10                         pixman_rectangle16_t * rectangle)
11 {
+6, -1
 1@@ -54,13 +54,14 @@ static void pixman_draw_text_utf8(struct wld_drawable * drawable,
 2                                   struct font * font, uint32_t color,
 3                                   int32_t x, int32_t y,
 4                                   const char * text, int32_t length);
 5+static void pixman_flush(struct wld_drawable * drawable);
 6 static void pixman_destroy(struct wld_drawable * drawable);
 7 
 8 const static struct wld_draw_interface pixman_draw = {
 9     .fill_rectangle = &default_fill_rectangle,
10     .fill_rectangles = &pixman_fill_rectangles,
11     .draw_text_utf8 = &pixman_draw_text_utf8,
12-    .flush = &default_flush,
13+    .flush = &pixman_flush,
14     .destroy = &pixman_destroy
15 };
16 
17@@ -238,6 +239,10 @@ static void pixman_draw_text_utf8(struct wld_drawable * drawable,
18     pixman_image_unref(solid);
19 }
20 
21+void pixman_flush(struct wld_drawable * drawable)
22+{
23+}
24+
25 void pixman_destroy(struct wld_drawable * drawable)
26 {
27     struct pixman_drawable * pixman = (void *) drawable;
+0, -5
 1@@ -124,10 +124,5 @@ void default_fill_rectangles(struct wld_drawable * drawable, uint32_t color,
 2                              pixman_rectangle16_t * rectangles,
 3                              uint32_t num_rectangles);
 4 
 5-/**
 6- * This is a NO-OP for implementations that do not require flushing.
 7- */
 8-void default_flush(struct wld_drawable * drawable);
 9-
10 #endif
11