mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-11 16:26:20 +00:00
Update cli/src/image_data.js
This commit is contained in:
@@ -1,10 +1,5 @@
|
||||
export default class ImageData {
|
||||
constructor(data, width, height) {
|
||||
// Need to manually copy the memory as wasm-bindgen does not by default
|
||||
// and by the time we get control in JS land, the memory has already
|
||||
// been corrupted.
|
||||
// FIXME: This is bad because it’s overhead that we should only need
|
||||
// to pay for Rust, not for C++.
|
||||
this.data = data;
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
|
||||
Reference in New Issue
Block a user