Changeset 280614 in webkit
- Timestamp:
- Aug 3, 2021, 1:54:17 PM (5 years ago)
- Location:
- branches/safari-612.1-branch/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-612.1-branch/Source/WebCore/ChangeLog
r280613 r280614 1 2021-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 1 46 2021-08-03 Russell Epstein <repstein@apple.com> 2 47 -
branches/safari-612.1-branch/Source/WebCore/platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp
r280531 r280614 106 106 MediaPlayerPrivateAVFoundation::MediaRenderingMode MediaPlayerPrivateAVFoundation::preferredRenderingMode() const 107 107 { 108 if ( !m_visible ||assetStatus() == MediaPlayerAVAssetStatusUnknown)108 if (assetStatus() == MediaPlayerAVAssetStatusUnknown) 109 109 return MediaRenderingNone; 110 110 … … 469 469 void MediaPlayerPrivateAVFoundation::renderingModeChanged() 470 470 { 471 if (m_delayingReadyState && m_cachedHasVideo && hasAvailableVideoFrame()) 472 scheduleUpdateStates(); 471 scheduleUpdateStates(); 473 472 m_player->renderingModeChanged(); 474 473 }
Note:
See TracChangeset
for help on using the changeset viewer.