summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2018-06-25 09:49:26 +0100
committerFrediano Ziglio <fziglio@redhat.com>2018-06-26 21:14:04 +0100
commit7c0ced81d7172b8796cd1ca4f5d8485c7e0227de (patch)
tree6ad16c8dcb8c5ecfbb001fa860b84b7fb2107711
parentc35b8bc1de160acb41b744212f097f9db3b43868 (diff)
Do not set self_bitmap flag for QXL_DRAW_COPY command
Setting this flag on this command cause some performance issue. When the server see this flag it updates the frame buffer and copy part of it in a new allocated image. However for this command the image is not used wasting only CPU and memory. Also the frame buffer update causes the elimination optimisation to be less effective causing more network usage. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Yuri Benditovich <yuri.benditovich@daynix.com>
-rwxr-xr-xqxldod/QxlDod.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/qxldod/QxlDod.cpp b/qxldod/QxlDod.cpp
index f74f54e..b72e12c 100755
--- a/qxldod/QxlDod.cpp
+++ b/qxldod/QxlDod.cpp
@@ -4607,9 +4607,6 @@ QXLDrawable *QxlDevice::PrepareBltBits (
drawable->surfaces_dest[0] = 0;
CopyRect(&drawable->surfaces_rects[0], pRect);
- drawable->self_bitmap = TRUE;
- CopyRect(&drawable->self_bitmap_area, pRect);
-
height = pRect->bottom - pRect->top;
width = pRect->right - pRect->left;