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

Changeset 280614 in webkit


Ignore:
Timestamp:
Aug 3, 2021, 1:54:17 PM (5 years ago)
Author:
Russell Epstein
Message:

Cherry-pick r280589. rdar://problem/81471336

REGRESSION (r280531): multiple modern-media-controls tests have become flaky timeouts
https://bugs.webkit.org/show_bug.cgi?id=228714
<rdar://problem/81426715>

Reviewed by Eric Carlson.

Update preferredRenderingMode() to reflect what setUpVideoRendering() actually does: use
MediaRenderingToContext whenever possible. This will cause setUpVideoRendering() to be
called from updateStates() to create the context, even if the element has been marked as
!isVisible() by RenderVideo upon removal from the DOM.

Also, in renderingModeChanged(), don't attempt to deduce whether scheduleUpdateStates()
should be called; just call it universally.

  • platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp: (WebCore::MediaPlayerPrivateAVFoundation::preferredRenderingMode const): (WebCore::MediaPlayerPrivateAVFoundation::renderingModeChanged):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@280589 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-612.1-branch/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-612.1-branch/Source/WebCore/ChangeLog

    r280613 r280614  
     12021-08-03  Russell Epstein  <repstein@apple.com>
     2
     3        Cherry-pick r280589. rdar://problem/81471336
     4
     5    REGRESSION (r280531): multiple modern-media-controls tests have become flaky timeouts
     6    https://bugs.webkit.org/show_bug.cgi?id=228714
     7    <rdar://problem/81426715>
     8   
     9    Reviewed by Eric Carlson.
     10   
     11    Update preferredRenderingMode() to reflect what setUpVideoRendering() actually does: use
     12    MediaRenderingToContext whenever possible. This will cause setUpVideoRendering() to be
     13    called from updateStates() to create the context, even if the element has been marked as
     14    !isVisible() by RenderVideo upon removal from the DOM.
     15   
     16    Also, in renderingModeChanged(), don't attempt to deduce whether scheduleUpdateStates()
     17    should be called; just call it universally.
     18   
     19    * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
     20    (WebCore::MediaPlayerPrivateAVFoundation::preferredRenderingMode const):
     21    (WebCore::MediaPlayerPrivateAVFoundation::renderingModeChanged):
     22   
     23   
     24    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@280589 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     25
     26    2021-08-03  Jer Noble  <jer.noble@apple.com>
     27
     28            REGRESSION (r280531): multiple modern-media-controls tests have become flaky timeouts
     29            https://bugs.webkit.org/show_bug.cgi?id=228714
     30            <rdar://problem/81426715>
     31
     32            Reviewed by Eric Carlson.
     33
     34            Update preferredRenderingMode() to reflect what setUpVideoRendering() actually does: use
     35            MediaRenderingToContext whenever possible. This will cause setUpVideoRendering() to be
     36            called from updateStates() to create the context, even if the element has been marked as
     37            !isVisible() by RenderVideo upon removal from the DOM.
     38
     39            Also, in renderingModeChanged(), don't attempt to deduce whether scheduleUpdateStates()
     40            should be called; just call it universally.
     41
     42            * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
     43            (WebCore::MediaPlayerPrivateAVFoundation::preferredRenderingMode const):
     44            (WebCore::MediaPlayerPrivateAVFoundation::renderingModeChanged):
     45
    1462021-08-03  Russell Epstein  <repstein@apple.com>
    247
  • branches/safari-612.1-branch/Source/WebCore/platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp

    r280531 r280614  
    106106MediaPlayerPrivateAVFoundation::MediaRenderingMode MediaPlayerPrivateAVFoundation::preferredRenderingMode() const
    107107{
    108     if (!m_visible || assetStatus() == MediaPlayerAVAssetStatusUnknown)
     108    if (assetStatus() == MediaPlayerAVAssetStatusUnknown)
    109109        return MediaRenderingNone;
    110110
     
    469469void MediaPlayerPrivateAVFoundation::renderingModeChanged()
    470470{
    471     if (m_delayingReadyState && m_cachedHasVideo && hasAvailableVideoFrame())
    472         scheduleUpdateStates();
     471    scheduleUpdateStates();
    473472    m_player->renderingModeChanged();
    474473}
Note: See TracChangeset for help on using the changeset viewer.