Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[GStreamer] Use FakeSink to get a decoded texture from a pipeline
https://bugs.webkit.org/show_bug.cgi?id=153641 Reviewed by Philippe Normand. .: * Source/cmake/FindGStreamer.cmake: Bump gst-gl version to 1.8.0 Source/WebCore: Relying on GstGLImageSink to use GStreamerGL brings a lot of overheads such as window handling, context switching and overlay handling which are not needed in our case. This patch replaces GstGLImageSink with a custom GstBin which has a GstGLUpload, GstGLColorConvert, and GstFakeSink. GstFakeSink sends decoded frames via handoff signal from the vqueue thread of GStreamer. Previously, GstGLImageSink passes frames through GStreamer's GL thread, which adds additional overhead. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp: (WebCore::GstVideoFrameHolder::~GstVideoFrameHolder): Modified to unmap GstVideoFrame without async call. GstGLMemory will unmap itself in gl-thread. (WebCore::MediaPlayerPrivateGStreamerBase::drawCallback): (WebCore::MediaPlayerPrivateGStreamerBase::createVideoSinkGL): Split out creating of the gst-gl video sink into the separte method. (WebCore::MediaPlayerPrivateGStreamerBase::paint): Remove assertion for the threaded compositor. It can be called by focusing event. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.h: Canonical link: https://commits.webkit.org/175957@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@201076 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
105 additions
and 34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters