[Spice-devel] [PATCH xf86-qxl 11/27] qxl_surface: add download_box_no_update
Marc-André Lureau
marcandre.lureau at gmail.com
Mon Jul 16 08:38:35 PDT 2012
From: Alon Levy <alevy at redhat.com>
---
src/qxl_surface.c | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/src/qxl_surface.c b/src/qxl_surface.c
index aef90ec..a5f8c9e 100644
--- a/src/qxl_surface.c
+++ b/src/qxl_surface.c
@@ -898,6 +898,16 @@ qxl_surface_flush (qxl_surface_t *surface)
/* access */
static void
+download_box_no_update (qxl_surface_t *surface, int x1, int y1, int x2, int y2)
+{
+ pixman_image_composite (PIXMAN_OP_SRC,
+ surface->dev_image,
+ NULL,
+ surface->host_image,
+ x1, y1, 0, 0, x1, y1, x2 - x1, y2 - y1);
+}
+
+static void
download_box (qxl_surface_t *surface, int x1, int y1, int x2, int y2)
{
struct QXLRam *ram_header = get_ram_header (surface->cache->qxl);
@@ -911,11 +921,7 @@ download_box (qxl_surface_t *surface, int x1, int y1, int x2, int y2)
qxl_update_area(surface->cache->qxl);
- pixman_image_composite (PIXMAN_OP_SRC,
- surface->dev_image,
- NULL,
- surface->host_image,
- x1, y1, 0, 0, x1, y1, x2 - x1, y2 - y1);
+ download_box_no_update(surface, x1, y1, x2, y2);
}
Bool
--
1.7.10.4
More information about the Spice-devel
mailing list