Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

canvas: Remove BitmapDataStorage and fix lifetime of bitmap data #7051

Merged
merged 1 commit into from
May 22, 2022

Conversation

Herschel
Copy link
Member

@Herschel Herschel commented May 22, 2022

 * 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:
   ruffle-rs#6975 (comment)
   `ImageData` does not copy the buffer passed to it, so store it
   to keep it alive. See:
   rustwasm/wasm-bindgen#2445
@Herschel Herschel force-pushed the canvas-bitmap-bug branch from 533bd2e to 445562a Compare May 22, 2022 09:38
@Herschel Herschel merged commit 4f69591 into ruffle-rs:master May 22, 2022
@Herschel Herschel deleted the canvas-bitmap-bug branch May 22, 2022 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants