mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
WebIDL: use FLoat32Array (#30990)
* inital * audiobuffer: return float 32 array as channel data * add on heap float 32 array type * fix warnings * add list of webidl interfaces to ignore for float 32 * codegen: remove duplication of builtin return type handling * bindings: derive default for float 32 array wrapper * bindings: allow unsafe code in typedarrays module * bindings: rename float 32 array wrapper * bindings: rename HeapFloat32Array is_set method to is_initialized * bindings: assert float 32 array is initialized before data can be acquired * bindings: use let syntax for error handling in float 32 array wrapper * bindings: use copy_from_slice where possible in float 32 array wrapper * bindings: rename args in typedarray copy methods * codegen: use idl type in builtin names for float 32 array * bindings: add a util to create float 32 arrays, use in dom matrix readonly * codegen: tidy * bindings: box the heap inside heaped float 32 arrays
This commit is contained in:
parent
90f70e3408
commit
e145c51234
6 changed files with 159 additions and 87 deletions
3
third_party/WebIDL/WebIDL.py
vendored
3
third_party/WebIDL/WebIDL.py
vendored
|
@ -2401,6 +2401,7 @@ class IDLType(IDLObject):
|
|||
"object",
|
||||
# Funny stuff
|
||||
"interface",
|
||||
"float32array",
|
||||
"dictionary",
|
||||
"enum",
|
||||
"callback",
|
||||
|
@ -3640,7 +3641,7 @@ class IDLBuiltinType(IDLType):
|
|||
Types.Uint16Array: IDLType.Tags.interface,
|
||||
Types.Int32Array: IDLType.Tags.interface,
|
||||
Types.Uint32Array: IDLType.Tags.interface,
|
||||
Types.Float32Array: IDLType.Tags.interface,
|
||||
Types.Float32Array: IDLType.Tags.float32array,
|
||||
Types.Float64Array: IDLType.Tags.interface,
|
||||
Types.ReadableStream: IDLType.Tags.interface,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue