[webkit-changes] [WebKit/WebKit] fab721: [Cocoa] Adopt -[AVSampleBufferDisplayLayer setPrev...

aestes noreply at github.com
Fri Aug 18 14:00:16 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: fab721e7e9eba3573e21a39c603e30d4e1fdb9dd
      https://github.com/WebKit/WebKit/commit/fab721e7e9eba3573e21a39c603e30d4e1fdb9dd
  Author: Andy Estes <aestes at apple.com>
  Date:   2023-08-18 (Fri, 18 Aug 2023)

  Changed paths:
    M Source/WebCore/PAL/pal/spi/cocoa/AVFoundationSPI.h
    M Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm
    M Source/WebCore/platform/graphics/cocoa/MediaPlayerPrivateWebM.mm

  Log Message:
  -----------
  [Cocoa] Adopt -[AVSampleBufferDisplayLayer setPreventsDisplaySleepDuringVideoPlayback:] as API
https://bugs.webkit.org/show_bug.cgi?id=260405
rdar://112165356

Reviewed by Jer Noble.

The preventsDisplaySleepDuringVideoPlayback property on AVSampleBufferDisplayLayer has been
available as API since macOS 10.15 and iOS 13, so we can remove our SPI declaration from
AVFoundationSPI.h.

* Source/WebCore/PAL/pal/spi/cocoa/AVFoundationSPI.h:
* Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:
(WebCore::MediaPlayerPrivateMediaSourceAVFObjC::ensureLayer):
* Source/WebCore/platform/graphics/cocoa/MediaPlayerPrivateWebM.mm:
(WebCore::MediaPlayerPrivateWebM::ensureLayer):

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




More information about the webkit-changes mailing list