[webkit-changes] [WebKit/WebKit] 0a992f: [GStreamer] Reduce use of WTF_ALLOW_UNSAFE_BUFFER_...

Philippe Normand noreply at github.com
Thu Jan 16 03:43:59 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0a992fa21846a6dc69a08321b23afe6255f361b1
      https://github.com/WebKit/WebKit/commit/0a992fa21846a6dc69a08321b23afe6255f361b1
  Author: Philippe Normand <philn at igalia.com>
  Date:   2025-01-16 (Thu, 16 Jan 2025)

  Changed paths:
    M Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.cpp
    M Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.h
    M Source/WebCore/platform/graphics/gstreamer/VideoFrameGStreamer.cpp

  Log Message:
  -----------
  [GStreamer] Reduce use of WTF_ALLOW_UNSAFE_BUFFER_USAGE in VideoFrame
https://bugs.webkit.org/show_bug.cgi?id=285817

Reviewed by Xabier Rodriguez-Calvar.

This a first step towards safer buffer usage in VideoFrame, there are still several unsafe parts, to
be adressed in a follow-up patch.

* Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.cpp:
(WebCore::GstMappedFrame::componentWidth const):
* Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.h:
* Source/WebCore/platform/graphics/gstreamer/VideoFrameGStreamer.cpp:
(WebCore::copyToGstBufferPlane):
(WebCore::VideoFrame::createNV12):
(WebCore::VideoFrame::createI420):
(WebCore::VideoFrame::createI420A):
(WebCore::VideoFrame::copyTo):

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list