-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://bugs.webkit.org/show_bug.cgi?id=274257 Reviewed by Xabier Rodriguez-Calvar. The ImageGStreamer no longer holds a BitmapImage, but a PlatformImagePtr. A BitmapImage is now created by VideoFrameGStreamer when painting is required. The ImageGStreamerSkia implementation no longer holds the mapped GstVideoFrame because that keeps un-necessary references and file descriptors open, the needed plane data is copied instead. The static ImageDecoderGStreamer vector now stores WeakPtrs instead of RefPtr, which semantically more correct but in practice makes no difference. * Source/WebCore/platform/graphics/gstreamer/ImageDecoderGStreamer.cpp: (WebCore::ensureDebugCategoryIsInitialized): (WebCore::teardownGStreamerImageDecoders): (WebCore::ImageDecoderGStreamer::create): (WebCore::ImageDecoderGStreamer::ImageDecoderGStreamer): * Source/WebCore/platform/graphics/gstreamer/ImageDecoderGStreamer.h: * Source/WebCore/platform/graphics/gstreamer/ImageGStreamer.h: (WebCore::ImageGStreamer::create): (WebCore::ImageGStreamer::image const): (WebCore::ImageGStreamer::rect): (WebCore::ImageGStreamer::createImage): Deleted. (WebCore::ImageGStreamer::image): Deleted. * Source/WebCore/platform/graphics/gstreamer/ImageGStreamerCairo.cpp: (WebCore::ImageGStreamer::ImageGStreamer): * Source/WebCore/platform/graphics/gstreamer/ImageGStreamerSkia.cpp: (WebCore::ImageGStreamer::ImageGStreamer): * Source/WebCore/platform/graphics/gstreamer/MediaSampleGStreamer.h: (WebCore::MediaSampleGStreamer::sample const): * Source/WebCore/platform/graphics/gstreamer/VideoFrameGStreamer.cpp: (WebCore::convertSampleToImage): (WebCore::VideoFrame::paintInContext): Canonical link: https://commits.webkit.org/279052@main
- Loading branch information
Showing
7 changed files
with
68 additions
and
47 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
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