spice: rework mirror allocation, add no-resize fast path
commit555e72f2d02125766601db52c6380357b3820fcb
authorGerd Hoffmann <kraxel@redhat.com>
Sat, 8 Nov 2014 07:56:34 +0000 (8 08:56 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 16 Dec 2014 13:15:29 +0000 (16 14:15 +0100)
treeb07ee6eb2142513c1f69a5153015ea31120034ec
parent3dcadce5076d4b42fa395c39662d65e050b77784
spice: rework mirror allocation, add no-resize fast path

Add fast path to qemu_spice_display_switch in case old and new
displaysurface have identical size (happens with display panning
and page flipping).  We just swap the backing store then and don't
go through the whole process of deleting and creating the primary
surface.

To simplify the code a bit move mirror surface allocation to
qemu_spice_display_switch().

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/spice-display.c