⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 275662 in webkit


Ignore:
Timestamp:
Apr 8, 2021, 11:17:31 AM (6 years ago)
Author:
youenn@apple.com
Message:

Broken transition when video player with MediaStream changes size
​https://bugs.webkit.org/show_bug.cgi?id=224161
<rdar://problem/76366061>

Reviewed by Eric Carlson.

In case of animation that changes the root layer bounds, we need to synchronously update
the buffer layer as well.

Manually tested.

  • platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm:

(WebCore::MediaPlayerPrivateMediaStreamAVFObjC::rootLayerBoundsDidChange):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r275660 r275662  
     12021-04-08  Youenn Fablet  <youenn@apple.com>
     2
     3        Broken transition when video player with MediaStream changes size
     4        https://bugs.webkit.org/show_bug.cgi?id=224161
     5        <rdar://problem/76366061>
     6
     7        Reviewed by Eric Carlson.
     8
     9        In case of animation that changes the root layer bounds, we need to synchronously update
     10        the buffer layer as well.
     11
     12        Manually tested.
     13
     14        * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm:
     15        (WebCore::MediaPlayerPrivateMediaStreamAVFObjC::rootLayerBoundsDidChange):
     16
    1172021-04-08  Simon Fraser  <simon.fraser@apple.com>
    218
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm

    r274778 r275662  
    10491049void MediaPlayerPrivateMediaStreamAVFObjC::rootLayerBoundsDidChange()
    10501050{
    1051     m_shouldUpdateDisplayLayer = true;
     1051    auto locker = holdLock(m_sampleBufferDisplayLayerLock);
     1052    if (m_sampleBufferDisplayLayer)
     1053        m_sampleBufferDisplayLayer->updateBoundsAndPosition(m_sampleBufferDisplayLayer->rootLayer().bounds, m_videoRotation);
    10521054}
    10531055
Note: See TracChangeset for help on using the changeset viewer.