[Spice-devel] [spice-html5] display: Dump bitmap metadata in log_draw()
Christophe Fergeau
cfergeau at redhat.com
Tue Jul 17 14:54:13 UTC 2018
On Tue, Jul 17, 2018 at 09:00:33AM -0500, Jeremy White wrote:
> > > > diff --git a/display.js b/display.js
> > > > index 7719b23..c55b686 100644
> > > > --- a/display.js
> > > > +++ b/display.js
> > > > @@ -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.format +
> > >
> > > That looks like a repeat of the format, rather than the flags.
> >
> > Yup, this duplicates the width/heigh info, however this also has the
> > stride which is not present in the other places. Showing this is the
> > main goal of the patch, as I did not go as far as fixing the actual bug
> > (too unfamiliar with js :-/)
>
> Ah, I think you misunderstood. I wasn't concerned about the extra info,
> it's that I noticed that you supply a label of 'flags', but then actually
> pass in the format, which looks to be a copy/paste bug.
>
Oh indeed, totally missed that, I'll amend the patch, thanks!
Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20180717/739133be/attachment.sig>
More information about the Spice-devel
mailing list