summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2012-05-24 09:56:06 +0300
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-07-15 19:12:08 +0200
commit21e5719f74749fa6187539dc0805cb12759d66da (patch)
tree7a9565ba8b509aa3f68f0c296c631c917bb0ff7d
parent26b8b350628ec053217715e7a9cb77ff56e4f56e (diff)
qxl_surface: add download_box_no_update
-rw-r--r--src/qxl_surface.c16
1 files 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