Skip to content
Snippets Groups Projects
Commit 6c08964b authored by Wen, Jianxian's avatar Wen, Jianxian Committed by Gerd Hoffmann
Browse files

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: default avatarJianxian Wen <jianxian.wen@verisilicon.com>
Signed-off-by: default avatarLu Gao <lu.gao@verisilicon.com>
Reviewed-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <4C23C17B8E87E74E906A25A3254A03F4FA22100C@SHASXM06.verisilicon.com>
Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
parent 2297db82
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment