diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2013-08-19 13:18:22 -0400 |
---|---|---|
committer | Yonit Halperin <yhalperi@redhat.com> | 2013-08-19 13:18:22 -0400 |
commit | bcf89ea06d51dcb1d61c5f6d08f1425bd977072b (patch) | |
tree | 99a75d65cd87eb7068bf281c5fada8cfa4c34fbb | |
parent | 0d0c26e1663e57f238f89da9bd28940911c6c322 (diff) |
print draw_copy image id
-rw-r--r-- | server/red_worker.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/server/red_worker.c b/server/red_worker.c index 9b6ed9c..07d4999 100644 --- a/server/red_worker.c +++ b/server/red_worker.c @@ -2058,15 +2058,20 @@ static void red_pipe_print_box_data(DisplayChannelClient *dcc) goto end; } box = &drawable->red_drawable->bbox; - if (drawable->red_drawable->type != QXL_COPY_BITS) { - spice_debug("DRAW type=%d size=%u box [%u,%u][%u,%u]", drawable->red_drawable->type, red_drawable_get_size(drawable->red_drawable), - box->left, box->top, box->right, box->bottom); - } else { + if (drawable->red_drawable->type == QXL_COPY_BITS) { spice_debug("DRAW type=%d size=%u box [%u,%u][%u,%u] pos (%u, %u)", drawable->red_drawable->type, red_drawable_get_size(drawable->red_drawable), box->left, box->top, box->right, box->bottom, drawable->red_drawable->u.copy_bits.src_pos.x, drawable->red_drawable->u.copy_bits.src_pos.y ); + } else if (drawable->red_drawable->type == QXL_DRAW_COPY) { + spice_debug("DRAW type=%d size=%u box [%u,%u][%u,%u] src-id=%lu", drawable->red_drawable->type, red_drawable_get_size(drawable->red_drawable), + box->left, box->top, box->right, box->bottom, + drawable->red_drawable->u.copy.src_bitmap->descriptor.flags & SPICE_IMAGE_FLAGS_CACHE_ME ? + drawable->red_drawable->u.copy.src_bitmap->descriptor.id : 0); + } else { + spice_debug("DRAW type=%d size=%u box [%u,%u][%u,%u]", drawable->red_drawable->type, red_drawable_get_size(drawable->red_drawable), + box->left, box->top, box->right, box->bottom); } } else if (item->type == PIPE_ITEM_TYPE_UPGRADE) { Drawable *drawable = ((UpgradeItem *)item)->drawable; |