[webkit-changes] [WebKit/WebKit] 6f0bde: Support WebCodecsVideoFrame as input to canvas tex...

youennf noreply at github.com
Thu Oct 20 08:37:00 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6f0bde86532b2eca057e6d313b2083dc71adc1fb
      https://github.com/WebKit/WebKit/commit/6f0bde86532b2eca057e6d313b2083dc71adc1fb
  Author: Youenn Fablet <youennf at gmail.com>
  Date:   2022-10-20 (Thu, 20 Oct 2022)

  Changed paths:
    M LayoutTests/imported/w3c/web-platform-tests/webcodecs/videoFrame-texImage.any-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/webcodecs/videoFrame-texImage.any.js
    M Source/WebCore/html/canvas/WebGL2RenderingContext.h
    M Source/WebCore/html/canvas/WebGL2RenderingContext.idl
    M Source/WebCore/html/canvas/WebGLRenderingContext.idl
    M Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp
    M Source/WebCore/html/canvas/WebGLRenderingContextBase.h

  Log Message:
  -----------
  Support WebCodecsVideoFrame as input to canvas texImage2D
https://bugs.webkit.org/show_bug.cgi?id=246798
rdar://problem/101375988

Reviewed by Eric Carlson.

Update WebIDL to allow WebCodecsVideoFrame.
Add SW code path to texImage2D (optimized remote video frame path should be added later).

Update LayoutTests/imported/w3c/web-platform-tests/webcodecs/videoFrame-texImage.any.js to work around a current OffscreenCanvas limitation with WebGL.

* LayoutTests/imported/w3c/web-platform-tests/webcodecs/videoFrame-texImage.any-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/webcodecs/videoFrame-texImage.any.js:
(testTexImage2DFromVideoFrame):
(testTexImageWithClosedVideoFrame):
* Source/WebCore/html/canvas/WebGL2RenderingContext.h:
* Source/WebCore/html/canvas/WebGL2RenderingContext.idl:
* Source/WebCore/html/canvas/WebGLRenderingContext.idl:
* Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp:
(WebCore::WebGLRenderingContextBase::getTexImageSourceSize):
(WebCore::WebGLRenderingContextBase::texImageSourceHelper):
* Source/WebCore/html/canvas/WebGLRenderingContextBase.h:

Canonical link: https://commits.webkit.org/255784@main




More information about the webkit-changes mailing list