Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1e3921ec8629f9e73ae5fc688b3dbddc519384ab
      
https://github.com/WebKit/WebKit/commit/1e3921ec8629f9e73ae5fc688b3dbddc519384ab
  Author: Jean-Yves Avenard <[email protected]>
  Date:   2026-03-26 (Thu, 26 Mar 2026)

  Changed paths:
    M 
Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferParserAVFObjC.mm

  Log Message:
  -----------
  Unnecessary AVStreamDataParser allocation when querying if a mime type is 
supported.
https://bugs.webkit.org/show_bug.cgi?id=310775
rdar://173383289

Reviewed by Gerald Squelart.

For historical reason, to check MSE support we always has to call 
[allocAVStreamDataParserInstance() init].

On iPhone this used to return `nil` as this SPI was disabled on iPhone but
enabled on iPad and we couldn't rely on the presence of this SPI alone.

This is no longer true on any of our currently supported platforms.

It can be removed.

In the CPLT tests it accounted for a 75ms total overhead and 1.5ms per 
MediaSource creation.

Covered by existing tests.

* 
Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferParserAVFObjC.mm:
(WebCore::SourceBufferParserAVFObjC::isContentTypeSupported):

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



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

Reply via email to