Skip to content

Nightly 2022-05-23

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 23 May 00:03
canvas: Remove `BitmapDataStorage` and fix lifetime of bitmap data

 * Remove `BitmapDataStorage` as its no longer necessary, and store
   the bitmap canvas/context in `BitmapData` instead.
 * Store the `Bitmap` RBGA buffer in the canvas backend. Previously
   this was thrown away when converted to `ImageData`, but this
   causes the glitchy pixels mentioned in:
   https://github.com/ruffle-rs/ruffle/pull/6975#issuecomment-1127942520
   `ImageData` does not copy the buffer passed to it, so store it
   to keep it alive. See:
   https://github.com/rustwasm/wasm-bindgen/issues/2445