WebKit
WebKit copied to clipboard
Enable OffscreenCanvas compilation flag for macOS and iOS ports
0a2ab26a2e14faef5e4cd3f656f1b99daaee87f1
Enable OffscreenCanvas compilation flag for macOS and iOS ports https://bugs.webkit.org/show_bug.cgi?id=246456 rdar://problem/101124067 Reviewed by NOBODY (OOPS!). Enable the compilation flag for macOS and iOS ports. Fix the WebCodecs code so that it compiles and works with OffscreenCanvas. Update lib vpx encoder so that debug asserts do not crash: - error the encoder in case video frame sizes do not match. - add VP9 specific configuration. * LayoutTests/imported/w3c/web-platform-tests/html/canvas/element/manual/imagebitmap/createImageBitmap-drawImage-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/html/canvas/element/manual/imagebitmap/createImageBitmap-flipY-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/html/canvas/element/manual/imagebitmap/createImageBitmap-invalid-args-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/html/canvas/element/manual/imagebitmap/createImageBitmap-serializable-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/html/canvas/element/manual/imagebitmap/createImageBitmap-transfer-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/canvas-drawImage-offscreenCanvas-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/transfer-errors.window-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/imagebitmap-renderingcontext/context-creation-offscreen-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/imagebitmap-renderingcontext/context-creation-offscreen-with-alpha-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/imagebitmap-renderingcontext/tranferFromImageBitmap-ToBlob-offscreen-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/imagebitmap-renderingcontext/tranferFromImageBitmap-TransferToImageBitmap-offscreen-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/imagebitmap-renderingcontext/tranferFromImageBitmap-null-offscreen-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any_h264_annexb-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any_h264_avc-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any_vp8-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any_vp9_p0-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any_vp9_p2-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/webcodecs/reconfiguring-encoder.https.any_h264_annexb-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/webcodecs/reconfiguring-encoder.https.any_h264_avc-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/webcodecs/reconfiguring-encoder.https.any_vp8-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/webcodecs/reconfiguring-encoder.https.any_vp9_p0-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/webcodecs/temporal-svc-encoding.https.any_h264-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/webcodecs/temporal-svc-encoding.https.any_vp8-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/webcodecs/temporal-svc-encoding.https.any_vp9-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/webcodecs/video-encoder.https.any-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/webcodecs/video-frame-serialization.any-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/webcodecs/videoFrame-alpha.any-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/webcodecs/videoFrame-canvasImageSource-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/webcodecs/videoFrame-construction.any-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/webcodecs/videoFrame-createImageBitmap.any-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/webcodecs/videoFrame-createImageBitmap.https.any-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/webcodecs/videoFrame-drawImage.any-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/webcodecs/videoFrame-texImage.any-expected.txt: * LayoutTests/platform/mac-monterey/imported/w3c/web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/canvas-createImageBitmap-e_srgb-expected.txt: * Source/ThirdParty/libwebrtc/Configurations/libwebrtc.iOS.exp: * Source/ThirdParty/libwebrtc/Configurations/libwebrtc.iOSsim.exp: * Source/ThirdParty/libwebrtc/Configurations/libwebrtc.mac.exp: * Source/WTF/wtf/PlatformEnableCocoa.h: * Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.cpp: (WebCore::checkImageUsability): (WebCore::WebCodecsVideoFrame::create): (WebCore::WebCodecsVideoFrame::initializeFrameFromOtherFrame): * Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.h: * Source/WebCore/platform/LibWebRTCVPXVideoEncoder.cpp: (WebCore::LibWebRTCVPXInternalVideoEncoder::encode): (WebCore::LibWebRTCVPXInternalVideoEncoder::LibWebRTCVPXInternalVideoEncoder): * Source/WebCore/workers/DedicatedWorkerGlobalScope.cpp:
https://github.com/WebKit/WebKit/commit/c6aca84c2e71fc2d454876fa74b65a1e3f3cf0de
EWS run on previous version of this PR (hash https://github.com/WebKit/WebKit/commit/0a2ab26a2e14faef5e4cd3f656f1b99daaee87f1)
EWS run on previous version of this PR (hash https://github.com/WebKit/WebKit/commit/dc02756b92f275134ce3885879b4ee0448b1f0ad)
EWS run on previous version of this PR (hash https://github.com/WebKit/WebKit/commit/6f56265b6bae87963d81a2da56a4bd24cfe1b30d)
EWS run on previous version of this PR (hash https://github.com/WebKit/WebKit/commit/55743f147451e89563233dd8a92997043f3676cf)
EWS run on previous version of this PR (hash https://github.com/WebKit/WebKit/commit/32382cbd03d07aa13d3ac4271842995335137d72)
EWS run on previous version of this PR (hash https://github.com/WebKit/WebKit/commit/c6aca84c2e71fc2d454876fa74b65a1e3f3cf0de)
EWS run on previous version of this PR (hash https://github.com/WebKit/WebKit/commit/4c1544c6930f3871c246eebd07937b8f8edadbc7)
EWS run on current version of this PR (hash https://github.com/WebKit/WebKit/commit/1f784b6d970546c922448a7c2c9781e8d7ecf61f)
Committed 255615@main (5696d6a0304e): https://commits.webkit.org/255615@main
Reviewed commits have been landed. Closing PR #5327 and removing active labels.