diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2018-07-17 17:18:16 +0200 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2018-07-18 09:12:43 +0100 |
commit | 969fe1fb6835c11b921b7e7a827705e94a1c82d2 (patch) | |
tree | 5459762fe319a8e81bbe6688f4a8945e50d6f73f /display.js | |
parent | fb21664f6b7cfd492a5625cc4c47f28c91486f12 (diff) |
display: Dump bitmap metadata in log_draw()
log_draw() is used to debug drawing commands by dumping drawing
information to the JS console. This commit adds dumping of missing data
for uncompressed bitmaps. The 'stride' parameter is important, as
spice-html5 currently does not deal properly with such bitmaps.
Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
Acked-by: Jeremy White <jwhite@codeweavers.com>
Diffstat (limited to 'display.js')
-rw-r--r-- | display.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -769,6 +769,12 @@ SpiceDisplayConn.prototype.log_draw = function(prefix, draw) str += "; src_bitmap type " + draw.data.src_bitmap.descriptor.type + ", flags " + draw.data.src_bitmap.descriptor.flags; if (draw.data.src_bitmap.surface_id !== undefined) str += "; src_bitmap surface_id " + draw.data.src_bitmap.surface_id; + if (draw.data.src_bitmap.bitmap) + str += "; BITMAP format " + draw.data.src_bitmap.bitmap.format + + "; flags " + draw.data.src_bitmap.bitmap.flags + + "; x " + draw.data.src_bitmap.bitmap.x + + "; y " + draw.data.src_bitmap.bitmap.y + + "; stride " + draw.data.src_bitmap.bitmap.stride ; if (draw.data.src_bitmap.quic) str += "; QUIC type " + draw.data.src_bitmap.quic.type + "; width " + draw.data.src_bitmap.quic.width + |