Frediano Ziglio writes: > This give an hint to client which can optimise rendering. > > Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx> > --- > server/stream-channel.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/server/stream-channel.c b/server/stream-channel.c > index c7ca0206..67784711 100644 > --- a/server/stream-channel.c > +++ b/server/stream-channel.c > @@ -203,6 +203,12 @@ stream_channel_send_item(RedChannelClient *rcc, RedPipeItem *pipe_item) > channel->width, channel->height, > SPICE_SURFACE_FMT_32_xRGB, SPICE_SURFACE_FLAGS_PRIMARY > }; > +#ifdef SPICE_SURFACE_FLAGS_STREAMING_MODE > + // give an hint to client that we are sending just streaming > + if (red_channel_client_test_remote_cap(rcc, SPICE_DISPLAY_CAP_MULTI_CODEC)) { > + surface_create.flags |= SPICE_SURFACE_FLAGS_STREAMING_MODE; > + } > +#endif Acked-by: Christophe de Dinechin <dinechin@xxxxxxxxxx> > spice_marshall_msg_display_surface_create(m, &surface_create); > break; > } -- Cheers, Christophe de Dinechin (IRC c3d) _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel