[Spice-devel] [PATCH 13/16] red_worker: cleanup red_clear_surface_drawables_from_pipes

Jonathon Jongsma jjongsma at redhat.com
Fri Nov 27 09:57:52 PST 2015


On Fri, 2015-11-27 at 04:23 -0500, Frediano Ziglio wrote:
> > 
> > From: Yonit Halperin <yhalperi at redhat.com>
> > 
> > (1) merge 'force' and 'wait_for_outgoing_item' to one parameter.
> >     'wait_for_outgoing_item' is a derivative of 'force'.
> > (2) move the call to red_wait_outgoing_item to
> > red_clear_surface_drawables_from_pipe
> 
> Surely the original patch must had been bigger then this.

It looks like this is the original patch: 
http://lists.freedesktop.org/archives/spice-devel/2013-September/014516.html



> Now is just an argument name rename.
> The rename actually is making the argument name coherent
> between declaration and definition.
> 
> I would go for a comment like
> 
> 
> red_worker: make dcc_clear_surface_drawables_from_pipe declaration consistent
> with definition
> 
> 
> (also the name was changed)
> 
> Frediano
> 
> > ---
> >  server/dcc.h | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> > 
> > diff --git a/server/dcc.h b/server/dcc.h
> > index 14981ca..7b8a3b8 100644
> > --- a/server/dcc.h
> > +++ b/server/dcc.h
> > @@ -204,7 +204,8 @@ void                       dcc_release_item
> > (DisplayCha
> >  void                       dcc_send_item
> >  (DisplayChannelClient *dcc,
> >                                                                       
> >  PipeItem
> >                                                                       
> >  *item);
> >  int                        dcc_clear_surface_drawables_from_pipe
> >  (DisplayChannelClient *dcc,
> > -                                                                      int
> > surface_id, int force);
> > +                                                                      int
> > surface_id,
> > +                                                                      int
> > wait_if_used);
> >  int                        dcc_drawable_is_in_pipe
> >  (DisplayChannelClient *dcc,
> >                                                                       
> >  Drawable
> >                                                                       
> >  *drawable);
> >  
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel


More information about the Spice-devel mailing list