Bug 1718812 [wpt PR 29547] - [webcodecs] Add single-buffer VideoFrame constructor...
commit575f09739f2fe0743a176449ce5dcba3d0f9f581
authorDan Sanders <sandersd@chromium.org>
Fri, 2 Jul 2021 21:36:42 +0000 (2 21:36 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Sat, 3 Jul 2021 04:57:11 +0000 (3 04:57 +0000)
tree70bfb3fd3df5b23c20ec2228c580a1b32c2eb94f
parent4ce2d06b7950096e95700b2fe6c2086892590105
Bug 1718812 [wpt PR 29547] - [webcodecs] Add single-buffer VideoFrame constructor., a=testonly

Automatic update from web-platform-tests
[webcodecs] Add single-buffer VideoFrame constructor.

This CL adds a new VideoFrame constructor with the signature:

  VideoFrame(BufferSource data, VideoFrameBufferInit init)

VideoFrameBufferInit is similar to VideoFramePlaneInit, with the
addition of a |layout| field to describe |data|.

Change-Id: I21280b5a11bc2ffe8febf219fbd51576ef9b9ffb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2995565
Commit-Queue: Dan Sanders <sandersd@chromium.org>
Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#897902}

--

wpt-commits: d9c3dfb844c3ee0f1075c21aab46ff56f6e6179c
wpt-pr: 29547
testing/web-platform/tests/webcodecs/videoFrame-copyTo.any.js
testing/web-platform/tests/webcodecs/videoFrame-drawImage.any.js
testing/web-platform/tests/webcodecs/videoFrame-texImage.any.js
testing/web-platform/tests/webcodecs/videoFrame.any.js [moved from testing/web-platform/tests/webcodecs/video-frame.any.js with 56% similarity]