Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 96ac748c4ef70a0f10c5a1d63f41084e48f47a5f
      
https://github.com/WebKit/WebKit/commit/96ac748c4ef70a0f10c5a1d63f41084e48f47a5f
  Author: Philippe Normand <[email protected]>
  Date:   2025-02-10 (Mon, 10 Feb 2025)

  Changed paths:
    M Source/WebCore/platform/graphics/gstreamer/GStreamerVideoSinkCommon.cpp
    M Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
    M Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h
    M 
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedPlatformLayerBufferVideo.cpp
    M 
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedPlatformLayerBufferVideo.h

  Log Message:
  -----------
  [GStreamer] Reduce memory copies when rendering DMABufs
https://bugs.webkit.org/show_bug.cgi?id=287166

Reviewed by Carlos Garcia Campos.

Building a GstVideoInfo and GstVideoInfoDmaDrm for every video frame to be 
rendered as a cost on CPU
and memory usage. So build them only when the video sink caps change and pass 
them to the
PlatformLayerBuffer implementation.

The video sink notify::caps signal was also moved to the common sink code, 
otherwise in case of GL
sink which is a bin, the caps notified would be the ones before glupload, not 
the final caps of the
video chain.

* Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
(WebCore::MediaPlayerPrivateGStreamer::videoSinkCapsChanged):
(WebCore::MediaPlayerPrivateGStreamer::pushTextureToCompositor):
* Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
* 
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedPlatformLayerBufferVideo.cpp:
(WebCore::CoordinatedPlatformLayerBufferVideo::create):
* 
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedPlatformLayerBufferVideo.h:

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to