[dart2wasm] Fix non-static interop class. (flutter/engine#35407)

This commit is contained in:
joshualitt
2022-08-19 13:08:35 -07:00
committed by GitHub
parent db8c8c303b
commit c01ef41e9e

View File

@@ -328,7 +328,10 @@ class DecodeOptions {
/// * https://www.w3.org/TR/webcodecs/#videoframe-interface
@JS()
@anonymous
class VideoFrame implements DomCanvasImageSource {
@staticInterop
class VideoFrame implements DomCanvasImageSource {}
extension VideoFrameExtension on VideoFrame {
external int allocationSize();
external JsPromise copyTo(Uint8List destination);
external String? get format;