[Spice-devel] [PATCH] server: add async io support

Gerd Hoffmann kraxel at redhat.com
Thu Jul 7 01:18:43 PDT 2011


   Hi,

>>> void (*surface_updated)(QXLInstance *qxl, uint32_t surface_id, struct QXLRect *rect)
>>
>> Looks good.
>
> heh - I changed it to a list of rects instead of one in the patch I sent. Do you
> think a single is better?

A list is fine too and I think it actually is even better.  We can use 
also this for sdl/vnc rendering then.  Right now qxl-render.c calls 
update_area(), then waits for the results (including the dirty rects). 
We can just call update_area_async instead and receive the updates 
rectangles via surface_updated callback.  That way we can also simplify 
update_area_async, no need to pass around the rectangles list.

cheers,
   Gerd



More information about the Spice-devel mailing list