[webkit-changes] [WebKit/WebKit] 07db15: [GStreamer][WebCodecs] Reduce AudioConverter alloc...

Philippe Normand noreply at github.com
Tue Aug 29 02:22:18 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 07db15006984734250aa29f30c49170d3ec25a25
      https://github.com/WebKit/WebKit/commit/07db15006984734250aa29f30c49170d3ec25a25
  Author: Philippe Normand <philn at igalia.com>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

  Changed paths:
    M Source/WebCore/platform/audio/gstreamer/PlatformRawAudioDataGStreamer.cpp

  Log Message:
  -----------
  [GStreamer][WebCodecs] Reduce AudioConverter allocations
https://bugs.webkit.org/show_bug.cgi?id=260800

Reviewed by Xabier Rodriguez-Calvar.

It's not un-common to convert a stream of AudioData to another format, for instance when the
destination involves WebAudio, so allocate only one converter per source-destination format
combination.

* Source/WebCore/platform/audio/gstreamer/PlatformRawAudioDataGStreamer.cpp:
(WebCore::getAudioConvertedForFormat):
(WebCore::PlatformRawAudioData::copyTo):

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




More information about the webkit-changes mailing list