Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5f3fff28b7dcce320e18c4d05ab8295d31a041d6
      
https://github.com/WebKit/WebKit/commit/5f3fff28b7dcce320e18c4d05ab8295d31a041d6
  Author: Jean-Yves Avenard <[email protected]>
  Date:   2025-10-01 (Wed, 01 Oct 2025)

  Changed paths:
    A LayoutTests/media/content/counting.webm
    A LayoutTests/media/video-webm-canvas-drawing-expected.txt
    A LayoutTests/media/video-webm-canvas-drawing.html
    M LayoutTests/platform/mac-wk1/TestExpectations
    M Source/WebCore/platform/graphics/AudioVideoRenderer.h
    M Source/WebCore/platform/graphics/MediaPlayer.cpp
    M Source/WebCore/platform/graphics/avfoundation/AudioVideoRendererAVFObjC.h
    M Source/WebCore/platform/graphics/avfoundation/AudioVideoRendererAVFObjC.mm
    M Source/WebCore/platform/graphics/cocoa/MediaPlayerPrivateWebM.h
    M Source/WebCore/platform/graphics/cocoa/MediaPlayerPrivateWebM.mm
    M Source/WebKit/WebProcess/GPU/media/AudioVideoRendererRemote.cpp
    M Source/WebKit/WebProcess/GPU/media/AudioVideoRendererRemote.h

  Log Message:
  -----------
  Add paintCurrentVideoFrameInContext method to AudioVideoRenderer
https://bugs.webkit.org/show_bug.cgi?id=299419
rdar://161227994

Reviewed by Eric Carlson.

The MediaPlayerPrivateWebM and MediaPlayerPrivateMediaSourceAVFObjC only knew
how to paint in a GraphicsContext a native image.

When running in the web content process, this isn't a functional codepath.

We need to add support for dealing with RemoteVideoFrameProxy.

Added test to exercise the new codepath.

Test: media/video-webm-canvas-drawing.html
* LayoutTests/media/content/counting.webm: Added.
* LayoutTests/media/video-webm-canvas-drawing-expected.txt: Added.
* LayoutTests/media/video-webm-canvas-drawing.html: Added.
* Source/WebCore/platform/graphics/AudioVideoRenderer.h:
(WebCore::VideoInterface::paintCurrentVideoFrameInContext):
* Source/WebCore/platform/graphics/MediaPlayer.cpp:
(WebCore::MediaPlayer::isCrossOrigin const):
* Source/WebCore/platform/graphics/avfoundation/AudioVideoRendererAVFObjC.h:
* Source/WebCore/platform/graphics/avfoundation/AudioVideoRendererAVFObjC.mm:
(WebCore::AudioVideoRendererAVFObjC::paintCurrentVideoFrameInContext):
(WebCore::AudioVideoRendererAVFObjC::setVideoFullscreenLayer):
(WebCore::AudioVideoRendererAVFObjC::currentNativeImage):
* Source/WebCore/platform/graphics/cocoa/MediaPlayerPrivateWebM.h:
* Source/WebCore/platform/graphics/cocoa/MediaPlayerPrivateWebM.mm:
(WebCore::MediaPlayerPrivateWebM::MediaPlayerPrivateWebM):
(WebCore::MediaPlayerPrivateWebM::updateLastVideoFrame):
(WebCore::MediaPlayerPrivateWebM::paintCurrentFrameInContext):
* Source/WebKit/WebProcess/GPU/media/AudioVideoRendererRemote.cpp:
(WebKit::AudioVideoRendererRemote::paintCurrentVideoFrameInContext):
* Source/WebKit/WebProcess/GPU/media/AudioVideoRendererRemote.h:

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to