Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 22a068588490c41da10dd8fff3dd5d41989fbb74
https://github.com/WebKit/WebKit/commit/22a068588490c41da10dd8fff3dd5d41989fbb74
Author: Philippe Normand <[email protected]>
Date: 2026-04-06 (Mon, 06 Apr 2026)
Changed paths:
M Source/WTF/wtf/unix/UnixFileDescriptor.h
M
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedPlatformLayerBufferDMABuf.cpp
Log Message:
-----------
REGRESSION(310393@main): [WPE][GTK] Broke GStreamer 1.28 video rendering for
software video decoders
https://bugs.webkit.org/show_bug.cgi?id=311519
Reviewed by Nikolas Zimmermann.
YUV buffers importation to EGLImages was failing because the borrowed DMABuf
file descriptors were
closed too early. Without this patch, moving a borrowed UnixFileDescriptor to
another one would make
the new descriptor owned and it would be closed at destruction.
Passing by, add a borrow() utility method to UnixFileDescriptor and use it in
the
CoordinatedPlatformLayerBufferDMABuf.
* Source/WTF/wtf/unix/UnixFileDescriptor.h:
(WTF::UnixFileDescriptor::UnixFileDescriptor):
(WTF::UnixFileDescriptor::borrow const):
*
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedPlatformLayerBufferDMABuf.cpp:
(WebCore::CoordinatedPlatformLayerBufferDMABuf::importYUV const):
Canonical link: https://commits.webkit.org/310641@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications