Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: edd0064c6e44b70fc9c73d7f5c82fda039f0b24a
      
https://github.com/WebKit/WebKit/commit/edd0064c6e44b70fc9c73d7f5c82fda039f0b24a
  Author: Jean-Yves Avenard <[email protected]>
  Date:   2025-10-07 (Tue, 07 Oct 2025)

  Changed paths:
    M Source/WebCore/Configurations/AllowedSPI-legacy.toml
    M Source/WebCore/platform/graphics/avfoundation/AudioVideoRendererAVFObjC.mm
    M 
Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVContentKeySession.h
    M 
Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVContentKeySession.mm
    M 
Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.h
    M 
Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm

  Log Message:
  -----------
  [AVFoundation] remove shouldAddContentKeyRecipients code-path
https://bugs.webkit.org/show_bug.cgi?id=300270
rdar://162074955

Reviewed by Jer Noble.

supportsAttachContentKey has been the default code-path since enabled in 
272036@main on
iOS family and 282990@main all the other platforms.
The code was only partially removed in 299390@main. Remove the rest of it.
CDMSessionMediaSourceAVFObjC::add/removeParser were also unused. We removed 
them.

We can also remove the SPIs addStreamDataParser/removeStreamDataParser

No change in observable behaviour. Covered by existing tests.
* Source/WebCore/platform/graphics/avfoundation/AudioVideoRendererAVFObjC.mm:
(WebCore::AudioVideoRendererAVFObjC::addAudioRenderer):
(WebCore::AudioVideoRendererAVFObjC::destroyAudioRenderer):
(WebCore::AudioVideoRendererAVFObjC::ensureLayer):
(WebCore::AudioVideoRendererAVFObjC::destroyLayer):
(WebCore::AudioVideoRendererAVFObjC::setCDMInstance):
(WebCore::supportsAttachContentKey): Deleted.
(WebCore::shouldAddContentKeyRecipients): Deleted.
* 
Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVContentKeySession.h:
(WebCore::CDMSessionAVContentKeySession::hasContentKeySession const):
* 
Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVContentKeySession.mm:
(WebCore::CDMSessionAVContentKeySession::~CDMSessionAVContentKeySession):
(WebCore::CDMSessionAVContentKeySession::addParser): Deleted.
(WebCore::CDMSessionAVContentKeySession::removeParser): Deleted.
* 
Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.h:
* 
Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
(WebCore::SourceBufferPrivateAVFObjC::setCDMSession):
(WebCore::SourceBufferPrivateAVFObjC::attachContentKeyToSampleIfNeeded):
(WebCore::shouldAddContentKeyRecipients): Deleted.

Canonical link: https://commits.webkit.org/301167@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