Skip to content

Support JS TypedArray and DataView from C++ #1353

Open
@ada-tv

Description

@ada-tv

At the moment we only support deep-copied ArrayBuffer serialised as QByteArray. #1326 needs a way of temporarily referencing a TypedArray or DataView from V8 without doing two unnecessary copies of the RGBA pixel data. (Once calling ArrayBuffer.slice to get pixel data out of a WebAssembly memory, and again doing a deep copy while serialising to QByteArray)

Canvases specifically only need Uint8ClampedArray, but having the whole family of TypedArray types will be helpful for future stuff like scriptable PCM audio.

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockerPrevents work from being done, development or usageenhancementNew feature or requestv8Bugs related to the new V8 scripting engine

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions