vnc: detect and optimize pageflips
commit61e77a5f0c788495566aecb437bcf6b2cf9cda97
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 16 Jan 2019 10:10:49 +0000 (16 11:10 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 21 Jan 2019 08:43:13 +0000 (21 09:43 +0100)
tree67f2e47834d0502c954d53b0748835c2ef58e4f7
parenta442fe2f2b2f20e7be0934277e9400b844b11999
vnc: detect and optimize pageflips

When size and format of the display surface stays the same we can just
tag the guest display as dirty and be done with it.

There is no need need to resize the vnc server display or to touch the
vnc client dirty bits.  On the next refresh cycle
vnc_refresh_server_surface() will check for actual display content
changes and update the client dirty bits as needed.

The desktop resize and framebuffer format notifications to the vnc
client will be skipped too.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-id: 20190116101049.8929-1-kraxel@redhat.com
ui/vnc.c