| Summary: | [iOS] [WK2] Add plumbing for extracting video frames in element fullscreen | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Wenson Hsieh <wenson_hsieh> | ||||||||||
| Component: | Platform | Assignee: | Wenson Hsieh <wenson_hsieh> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Normal | CC: | akeerthi, calvaris, cdumez, changseok, eric.carlson, esprehn+autocc, ews-watchlist, glenn, gyuyoung.kim, jer.noble, megan_gardner, philipj, sergio, thorton, webkit-bug-importer | ||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||
| Version: | WebKit Nightly Build | ||||||||||||
| Hardware: | Unspecified | ||||||||||||
| OS: | Unspecified | ||||||||||||
| Bug Depends on: | 238579 | ||||||||||||
| Bug Blocks: | |||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Wenson Hsieh
2022-03-31 07:48:15 PDT
Created attachment 456242 [details]
Depends on #238579
Created attachment 456364 [details]
Rebase on trunk
Created attachment 456368 [details]
Fix non-GPUP build
Comment on attachment 456368 [details] Fix non-GPUP build View in context: https://bugs.webkit.org/attachment.cgi?id=456368&action=review r=me once the bots are happy > Source/WebCore/html/HTMLMediaElement.cpp:626 > + return m_player ? std::make_optional(m_player->identifier()) : std::nullopt; Thank you! Comment on attachment 456368 [details] Fix non-GPUP build View in context: https://bugs.webkit.org/attachment.cgi?id=456368&action=review Thank you for the review! Hmβ¦it looks like EWS is still lagging behind :( In the interim, I ran a subset of media and fullscreen layout tests locally on iOS sim and macOS, and verified that this doesn't cause any new tests to fail. I did find some existing, unrelated debug assertions, which I'll fix investigate in a followup bug. >> Source/WebCore/html/HTMLMediaElement.cpp:626 >> + return m_player ? std::make_optional(m_player->identifier()) : std::nullopt; > > Thank you! ππ» Comment on attachment 456368 [details] Fix non-GPUP build View in context: https://bugs.webkit.org/attachment.cgi?id=456368&action=review >>> Source/WebCore/html/HTMLMediaElement.cpp:626 >>> + return m_player ? std::make_optional(m_player->identifier()) : std::nullopt; >> >> Thank you! > > ππ» Note that with C++17, you should be able to just `std::optional { m_player->identifier() }` Comment on attachment 456368 [details] Fix non-GPUP build View in context: https://bugs.webkit.org/attachment.cgi?id=456368&action=review >>>> Source/WebCore/html/HTMLMediaElement.cpp:626 >>>> + return m_player ? std::make_optional(m_player->identifier()) : std::nullopt; >>> >>> Thank you! >> >> ππ» > > Note that with C++17, you should be able to just `std::optional { m_player->identifier() }` Sounds good β I'll go with that! (I wasn't sure whether we prefer std::optional { } or std::make_optional() β it sounds like the former is preferred?) Comment on attachment 456368 [details] Fix non-GPUP build View in context: https://bugs.webkit.org/attachment.cgi?id=456368&action=review >>>>> Source/WebCore/html/HTMLMediaElement.cpp:626 >>>>> + return m_player ? std::make_optional(m_player->identifier()) : std::nullopt; >>>> >>>> Thank you! >>> >>> ππ» >> >> Note that with C++17, you should be able to just `std::optional { m_player->identifier() }` > > Sounds good β I'll go with that! > > (I wasn't sure whether we prefer std::optional { } or std::make_optional() β it sounds like the former is preferred?) It's more concise so I think std::optional { } is better. Darin made a similar comment on one of my patches recently so I am passing it along :) Created attachment 456413 [details]
Patch for landing
(In reply to Wenson Hsieh from comment #6) > Hmβ¦it looks like EWS is still lagging behind :( > > In the interim, I ran a subset of media and fullscreen layout tests locally > on iOS sim and macOS, and verified that this doesn't cause any new tests to > fail. I did find some existing, unrelated debug assertions, which I'll > investigate in a followup bug. Tracking these existing failures in: <https://webkit.org/b/238687> Committed r292252 (249150@main): <https://commits.webkit.org/249150@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 456413 [details]. |