summaryrefslogtreecommitdiffstats
path: root/hw/display/cirrus_vga.c
diff options
context:
space:
mode:
authorWen, Jianxian2022-03-15 07:50:37 +0100
committerGerd Hoffmann2022-03-18 09:30:01 +0100
commit6c08964b415a7bfd3b3ed65e7309cc3ffdb096b8 (patch)
tree30061ddfa61f1cc605d784b9b9537cffaf571d49 /hw/display/cirrus_vga.c
parentui/gtk: Ignore 2- and 3-button press events (diff)
downloadqemu-6c08964b415a7bfd3b3ed65e7309cc3ffdb096b8.tar.gz
qemu-6c08964b415a7bfd3b3ed65e7309cc3ffdb096b8.tar.xz
qemu-6c08964b415a7bfd3b3ed65e7309cc3ffdb096b8.zip
ui: avoid unnecessary memory operations in vnc_refresh_server_surface()
Check the dirty bits in advance to avoid unnecessary memory operations. In the case that guest surface has different format than the server, but it does not have dirty bits which means no refresh is actually needed, the memory operations is not necessary. Signed-off-by: Jianxian Wen <jianxian.wen@verisilicon.com> Signed-off-by: Lu Gao <lu.gao@verisilicon.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <4C23C17B8E87E74E906A25A3254A03F4FA22100C@SHASXM06.verisilicon.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/display/cirrus_vga.c')
0 files changed, 0 insertions, 0 deletions