[webkit-changes] [WebKit/WebKit] 6f0659: LocalSampleBufferDisplayLayer gets errored in SVC ...

youennf noreply at github.com
Fri Jun 23 00:34:48 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6f0659d6fa39e7fd3b80a3934f98015fc6a5b1af
      https://github.com/WebKit/WebKit/commit/6f0659d6fa39e7fd3b80a3934f98015fc6a5b1af
  Author: Youenn Fablet <youennf at gmail.com>
  Date:   2023-06-23 (Fri, 23 Jun 2023)

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

  Log Message:
  -----------
  LocalSampleBufferDisplayLayer gets errored in SVC when going in the background
https://bugs.webkit.org/show_bug.cgi?id=258401
rdar://111157247

Reviewed by Eric Carlson.

In case of LocalSampleBufferDisplayLayer getting errored, we no longer are resetting the bounds of the newly created LocalSampleBufferDisplayLayer.
This was removed as part of https://bugs.webkit.org/show_bug.cgi?id=256695 patch as it was creating visible artifacts/flashes.
We are now resetting the bounds of a newly created LocalSampleBufferDisplayLayer in case it is recreated.
We do by storing the bounds of the LocalSampleBufferDisplayLayer.

Manually tested.

* Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.h:
* Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm:
(WebCore::MediaPlayerPrivateMediaStreamAVFObjC::layersAreInitialized):
(WebCore::MediaPlayerPrivateMediaStreamAVFObjC::setVideoInlineSizeFenced):

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




More information about the webkit-changes mailing list