aboutsummaryrefslogtreecommitdiff
path: root/ui/spice-display.c
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2011-07-19 08:02:35 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2011-07-19 08:02:35 -0500
commitde20fbcac9d71fc91635919bfbe0883a7df71887 (patch)
tree75c585673d9ce8501ef4143058b23e0f12bb7f74 /ui/spice-display.c
parent6734529435bafb0c59c951b3e16f4600c685ee39 (diff)
parenta3d14054d727efb8ff4c5060a4c3171bae2046ef (diff)
Merge remote-tracking branch 'spice/spice.v38' into staging
Diffstat (limited to 'ui/spice-display.c')
-rw-r--r--ui/spice-display.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/spice-display.c b/ui/spice-display.c
index 15f0704eaf..feeee73dcc 100644
--- a/ui/spice-display.c
+++ b/ui/spice-display.c
@@ -70,6 +70,7 @@ static SimpleSpiceUpdate *qemu_spice_create_update(SimpleSpiceDisplay *ssd)
QXLCommand *cmd;
uint8_t *src, *dst;
int by, bw, bh;
+ struct timespec time_space;
if (qemu_spice_rect_is_empty(&ssd->dirty)) {
return NULL;
@@ -96,6 +97,10 @@ static SimpleSpiceUpdate *qemu_spice_create_update(SimpleSpiceDisplay *ssd)
drawable->surfaces_dest[0] = -1;
drawable->surfaces_dest[1] = -1;
drawable->surfaces_dest[2] = -1;
+ clock_gettime(CLOCK_MONOTONIC, &time_space);
+ /* time in milliseconds from epoch. */
+ drawable->mm_time = time_space.tv_sec * 1000
+ + time_space.tv_nsec / 1000 / 1000;
drawable->u.copy.rop_descriptor = SPICE_ROPD_OP_PUT;
drawable->u.copy.src_bitmap = (intptr_t)image;