[Spice-devel] [RFC v4 42/62] server/red_worker: tiny cleanups

Marc-André Lureau marcandre.lureau at gmail.com
Mon May 2 16:55:20 PDT 2011


could be merged with 24/62: split Surfaces from RedWorker and 27/62
move streams from RedWorker to Surfaces (especially if you merge 24
and 27 as I proposed)

On Tue, Apr 26, 2011 at 12:55 PM, Alon Levy <alevy at redhat.com> wrote:
> ---
>  server/red_worker.c |    5 ++++-
>  1 files changed, 4 insertions(+), 1 deletions(-)
>
> diff --git a/server/red_worker.c b/server/red_worker.c
> index ebd9853..2c8ce2e 100644
> --- a/server/red_worker.c
> +++ b/server/red_worker.c
> @@ -1904,6 +1904,7 @@ static void print_draw_item(const char* prefix, const DrawItem *draw_item)
>  {
>     const TreeItem *base = &draw_item->base;
>     const Drawable *drawable = SPICE_CONTAINEROF(draw_item, Drawable, tree_item);
> +
>     printf("TEST: %s: draw id %u container %u effect %u",
>            prefix,
>            base->id, base->container ? base->container->base.id : 0,
> @@ -2653,6 +2654,7 @@ static void red_init_streams(Surfaces *surfaces)
>  {
>     int i;
>
> +    ASSERT(surfaces);
>     ring_init(&surfaces->streams);
>     surfaces->free_streams = NULL;
>     for (i = 0; i < NUM_STREAMS; i++) {
> @@ -3408,7 +3410,8 @@ static void free_one_drawable(RedWorker *worker, Surfaces *surfaces, int force_g
>     container_cleanup(surfaces, container);
>  }
>
> -static Drawable *get_drawable(RedWorker *worker, Surfaces *surfaces, uint8_t effect, RedDrawable *red_drawable,
> +static Drawable *get_drawable(RedWorker *worker, Surfaces *surfaces,
> +                              uint8_t effect, RedDrawable *red_drawable,
>                               uint32_t group_id) {
>     Drawable *drawable;
>     struct timespec time;
> --
> 1.7.4.4
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
>



-- 
Marc-André Lureau


More information about the Spice-devel mailing list