| Summary: | MediaPlayerPrivateMediaStreamAVFObjC should skip enqueuing frames when not visible | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | youenn fablet <youennf> | ||||||
| Component: | WebRTC | Assignee: | youenn fablet <youennf> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | calvaris, cdumez, changseok, eric.carlson, esprehn+autocc, ews-watchlist, glenn, gyuyoung.kim, hta, jer.noble, kondapallykalyan, pdr, philipj, sergio, tommyw, webkit-bug-importer, youennf | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
youenn fablet
2021-08-05 03:09:27 PDT
Created attachment 434974 [details]
Patch
Comment on attachment 434974 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=434974&action=review > Source/WebCore/ChangeLog:11 > + We do this by stopping to call ensureLayers when getting a new track. Instead we react upon player renderingCanBeAccelerated value. s/by stopping to call/by not calling/ > Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm:611 > -void MediaPlayerPrivateMediaStreamAVFObjC::setVisible(bool visible) > +void MediaPlayerPrivateMediaStreamAVFObjC::setVisible(bool isVisible) Not new to this patch, but we might want to rename this to `setPageIsVisible`, or maybe `setViewportIsVisible`, to match the names of the other "visible" methods. (In reply to Eric Carlson from comment #3) > Comment on attachment 434974 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=434974&action=review > > > Source/WebCore/ChangeLog:11 > > + We do this by stopping to call ensureLayers when getting a new track. Instead we react upon player renderingCanBeAccelerated value. > > s/by stopping to call/by not calling/ > > > Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm:611 > > -void MediaPlayerPrivateMediaStreamAVFObjC::setVisible(bool visible) > > +void MediaPlayerPrivateMediaStreamAVFObjC::setVisible(bool isVisible) > > Not new to this patch, but we might want to rename this to > `setPageIsVisible`, or maybe `setViewportIsVisible`, to match the names of > the other "visible" methods. Thanks for the review, I'll do that renaming in a follow-up: https://bugs.webkit.org/show_bug.cgi?id=228837 Created attachment 435006 [details]
Patch for landing
Committed r280720 (240311@main): <https://commits.webkit.org/240311@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 435006 [details]. |