Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b91b12de555b2f9dd9e19fc5794ddfb4b29b0fd8
https://github.com/WebKit/WebKit/commit/b91b12de555b2f9dd9e19fc5794ddfb4b29b0fd8
Author: Philippe Normand <[email protected]>
Date: 2026-01-27 (Tue, 27 Jan 2026)
Changed paths:
M Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
M Source/WebCore/platform/graphics/gstreamer/VideoFrameGStreamer.cpp
M Source/WebCore/platform/graphics/gstreamer/VideoFrameGStreamer.h
M
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedPlatformLayerBufferVideo.cpp
M
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedPlatformLayerBufferVideo.h
Log Message:
-----------
[GStreamer] Refactor CoordinatedPlatformLayerBufferVideo to use
VideoFrameGStreamer
https://bugs.webkit.org/show_bug.cgi?id=306266
Reviewed by Xabier Rodriguez-Calvar.
The GStreamer-specific DMABuf extraction is now handled in the VideoFrame
implementation. With this
change the CoordinatedPlatformLayerBufferVideo and notably its DMABuf subclass
will be usable for
GPU-GPU texture copies between media player and the WebGL backend running in
GPUProcess, and also
between WebCodecs and WebGL (bug 260429).
* Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
(WebCore::MediaPlayerPrivateGStreamer::pushTextureToCompositor):
* Source/WebCore/platform/graphics/gstreamer/VideoFrameGStreamer.cpp:
(WebCore::ensureVideoFrameDebugCategoryInitialized):
(WebCore::VideoFrame::fromNativeImage):
(WebCore::VideoFrameGStreamer::createWrappedSample):
(WebCore::VideoFrameGStreamer::createFromPixelBuffer):
(WebCore::VideoFrame::copyTo):
(WebCore::VideoFrame::copyNativeImage const):
(WebCore::VideoFrameGStreamer::convertToImage):
(WebCore::VideoFrameGStreamer::clone):
(WebCore::videoFormatToDRMFourcc):
(WebCore::VideoFrameGStreamer::getDMABuf):
* Source/WebCore/platform/graphics/gstreamer/VideoFrameGStreamer.h:
*
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedPlatformLayerBufferVideo.cpp:
(WebCore::CoordinatedPlatformLayerBufferVideo::create):
(WebCore::CoordinatedPlatformLayerBufferVideo::CoordinatedPlatformLayerBufferVideo):
(WebCore::CoordinatedPlatformLayerBufferVideo::createBufferIfNeeded):
(WebCore::CoordinatedPlatformLayerBufferVideo::createBufferFromDMABufMemory):
(WebCore::CoordinatedPlatformLayerBufferVideo::createBufferFromGLMemory):
(WebCore::CoordinatedPlatformLayerBufferVideo::paintToTextureMapper):
(WebCore::videoFormatToDRMFourcc): Deleted.
*
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedPlatformLayerBufferVideo.h:
Canonical link: https://commits.webkit.org/306270@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications