You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@guacamole.apache.org by GitBox <gi...@apache.org> on 2019/09/30 05:18:42 UTC
[GitHub] [guacamole-client] mike-jumper opened a new pull request #446:
GUACAMOLE-884: Leverage createImageBitmap() for reading image data where
supported.
mike-jumper opened a new pull request #446: GUACAMOLE-884: Leverage createImageBitmap() for reading image data where supported.
URL: https://github.com/apache/guacamole-client/pull/446
Some browsers suffer from a memory leak when reading image data repeatedly using the `Image` object. Reading from `Blob` objects does not exhibit the same behavior. While reading from `Blob` objects has previously been seen to perform poorly compared to data URIs, this was observed when reading using `createObjectURL()`. The `createImageBitmap()` function appears to perform identically to reading data URIs using `Image`.
This change:
* Updates `drawBlob()` to leverage `createImageBitmap()` where available.
* Adds a new `drawStream()` function to `Guacamole.Display` which automatically selects between reading from the given stream using data URIs or `Blob` objects depending on what the platform best supports.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services