Bug 208752 - [Media in GPU Process] Implement caption support in video fullscreen and PiP
Summary: [Media in GPU Process] Implement caption support in video fullscreen and PiP
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Peng Liu
URL:
Keywords: InRadar
Depends on: 216829
Blocks:
  Show dependency treegraph
 
Reported: 2020-03-06 18:17 PST by Peng Liu
Modified: 2020-09-23 11:45 PDT (History)
15 users (show)

See Also:


Attachments
WIP patch (17.37 KB, patch)
2020-03-06 22:37 PST, Peng Liu
simon.fraser: review-
Details | Formatted Diff | Diff
Patch (19.53 KB, patch)
2020-09-22 15:43 PDT, Peng Liu
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Fix build failures on WPE and GTK ports (19.55 KB, patch)
2020-09-22 15:49 PDT, Peng Liu
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Fix build failures on WPE and GTK ports v2 (19.63 KB, patch)
2020-09-22 16:01 PDT, Peng Liu
no flags Details | Formatted Diff | Diff
Fix build failures again (19.62 KB, patch)
2020-09-22 16:17 PDT, Peng Liu
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peng Liu 2020-03-06 18:17:58 PST
[Media in GPU Process] Implement caption support in video fullscreen and PiP
Comment 1 Peng Liu 2020-03-06 19:04:16 PST
<rdar://problem/60178102>
Comment 2 Peng Liu 2020-03-06 22:37:19 PST
Created attachment 392849 [details]
WIP patch
Comment 3 Simon Fraser (smfr) 2020-03-07 08:19:07 PST
Comment on attachment 392849 [details]
WIP patch

View in context: https://bugs.webkit.org/attachment.cgi?id=392849&action=review

> Source/WebCore/dom/Document.cpp:2103
> +        // ASSERT_NOT_REACHED();

You cannot remove this. If this hits, you're doing something wrong.

> Source/WebCore/rendering/RenderLayer.cpp:5703
> +            // ASSERT(clipRectsContext.rootLayer == m_clipRectsCache->m_clipRectsRoot[clipRectsType]);
> +            // ASSERT(m_clipRectsCache->m_scrollbarRelevancy[clipRectsType] == clipRectsContext.overlayScrollbarSizeRelevancy);

If you're hitting these you're also doing something wrong.
Comment 4 Peng Liu 2020-09-22 15:43:15 PDT
Created attachment 409415 [details]
Patch
Comment 5 Peng Liu 2020-09-22 15:49:28 PDT
Created attachment 409416 [details]
Fix build failures on WPE and GTK ports
Comment 6 Peng Liu 2020-09-22 16:01:34 PDT
Created attachment 409418 [details]
Fix build failures on WPE and GTK ports v2
Comment 7 Peng Liu 2020-09-22 16:17:46 PDT
Created attachment 409420 [details]
Fix build failures again
Comment 8 Eric Carlson 2020-09-23 11:00:59 PDT
Comment on attachment 409420 [details]
Fix build failures again

View in context: https://bugs.webkit.org/attachment.cgi?id=409420&action=review

> Source/WebKit/WebProcess/GPU/GPUProcessConnection.cpp:154
> +#if PLATFORM(IOS_FAMILY)
> +    if (decoder.messageReceiverName() == Messages::RemoteMediaSessionHelper::messageReceiverName()) {
> +        // FIXME
> +        return true;
> +    }
> +#endif

It might make more sense to add this when we fix RemoteMediaSessionHelper.
Comment 9 Peng Liu 2020-09-23 11:24:11 PDT
Comment on attachment 409420 [details]
Fix build failures again

View in context: https://bugs.webkit.org/attachment.cgi?id=409420&action=review

>> Source/WebKit/WebProcess/GPU/GPUProcessConnection.cpp:154
>> +#endif
> 
> It might make more sense to add this when we fix RemoteMediaSessionHelper.

Agree. But there will be assertion failures if we don't add it. :-(
Comment 10 EWS 2020-09-23 11:45:16 PDT
Committed r267491: <https://trac.webkit.org/changeset/267491>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 409420 [details].