Bug 232547 - Update GPU Process feature flags
Summary: Update GPU Process feature flags
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jon Lee
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-10-31 12:37 PDT by Jon Lee
Modified: 2021-12-06 11:23 PST (History)
10 users (show)

See Also:


Attachments
Patch (6.11 KB, patch)
2021-10-31 12:53 PDT, Jon Lee
no flags Details | Formatted Diff | Diff
Patch (9.17 KB, patch)
2021-11-30 11:51 PST, Jon Lee
wenson_hsieh: review+
Details | Formatted Diff | Diff
Patch for landing (9.53 KB, patch)
2021-12-02 12:47 PST, Jon Lee
no flags Details | Formatted Diff | Diff
Patch for landing (9.15 KB, patch)
2021-12-02 23:48 PST, Jon Lee
no flags Details | Formatted Diff | Diff
Patch for landing (9.13 KB, patch)
2021-12-05 22:45 PST, Jon Lee
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Lee 2021-10-31 12:37:25 PDT
rdar://83905400
Comment 1 Jon Lee 2021-10-31 12:53:52 PDT
Created attachment 442938 [details]
Patch
Comment 2 Wenson Hsieh 2021-11-01 07:53:27 PDT
Is the intention to also enable DOM in GPU Process by default in layout tests?
Comment 3 Jon Lee 2021-11-01 15:19:20 PDT
(In reply to Wenson Hsieh from comment #2)
> Is the intention to also enable DOM in GPU Process by default in layout
> tests?

Good point. It is not, yet.
Comment 4 Jon Lee 2021-11-30 11:51:23 PST
Created attachment 445449 [details]
Patch
Comment 5 Wenson Hsieh 2021-12-01 16:04:09 PST
Comment on attachment 445449 [details]
Patch

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

> Source/WTF/Scripts/Preferences/WebPreferencesInternal.yaml:954
> +# FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely.

Nit - let's fix the "relevant" spelling while we're moving this flag
Comment 6 Jonathan Bedard 2021-12-01 16:06:58 PST
Comment on attachment 445449 [details]
Patch

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

> Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py:-384
> -        options.experimental_feature.append('WebRTCPlatformCodecsInGPUProcessEnabled')

Is `WebRTCPlatformCodecsInGPUProcessEnabled` now an internal feature because it's implicitly part of `UseGPUProcessForDOMRenderingEnabled`?
Comment 7 Wenson Hsieh 2021-12-01 16:08:48 PST
Comment on attachment 445449 [details]
Patch

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

>> Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py:-384
>> -        options.experimental_feature.append('WebRTCPlatformCodecsInGPUProcessEnabled')
> 
> Is `WebRTCPlatformCodecsInGPUProcessEnabled` now an internal feature because it's implicitly part of `UseGPUProcessForDOMRenderingEnabled`?

Based on the WTF changelog, It's an internal feature because we've shipped it (on by default) already.
Comment 8 Peng Liu 2021-12-02 10:46:49 PST
Comment on attachment 445449 [details]
Patch

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

> Source/WTF/Scripts/Preferences/WebPreferencesInternal.yaml:162
> +  condition: ENABLE(MEDIA_STREAM)

Probably we need to add `ENABLE(GPU_PROCESS)` here?

> Source/WTF/Scripts/Preferences/WebPreferencesInternal.yaml:959
> +  condition: ENABLE(WEB_RTC)

Need to add `ENABLE(GPU_PROCESS)` as well?
Comment 9 Jon Lee 2021-12-02 10:49:57 PST
(In reply to Jonathan Bedard from comment #6)
> Comment on attachment 445449 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=445449&action=review
> 
> > Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py:-384
> > -        options.experimental_feature.append('WebRTCPlatformCodecsInGPUProcessEnabled')
> 
> Is `WebRTCPlatformCodecsInGPUProcessEnabled` now an internal feature because
> it's implicitly part of `UseGPUProcessForDOMRenderingEnabled`?

No. It's part of WebRTC, and is enabled by default. I'm moving features we turned on by default in our last release to internal. The flags are useful for testing, but they're no longer experimental.
Comment 10 Jon Lee 2021-12-02 10:50:20 PST
(In reply to Peng Liu from comment #8)
> Comment on attachment 445449 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=445449&action=review
> 
> > Source/WTF/Scripts/Preferences/WebPreferencesInternal.yaml:162
> > +  condition: ENABLE(MEDIA_STREAM)
> 
> Probably we need to add `ENABLE(GPU_PROCESS)` here?
> 
> > Source/WTF/Scripts/Preferences/WebPreferencesInternal.yaml:959
> > +  condition: ENABLE(WEB_RTC)
> 
> Need to add `ENABLE(GPU_PROCESS)` as well?

I didn't touch these but can add them.
Comment 11 Jon Lee 2021-12-02 12:47:01 PST
Created attachment 445764 [details]
Patch for landing
Comment 12 Jon Lee 2021-12-02 23:48:08 PST
Created attachment 445816 [details]
Patch for landing
Comment 13 EWS 2021-12-05 22:21:37 PST
ChangeLog entry in Source/WTF/ChangeLog contains OOPS!.
Comment 14 Jon Lee 2021-12-05 22:45:06 PST
Created attachment 446000 [details]
Patch for landing
Comment 15 EWS 2021-12-06 11:23:02 PST
Committed r286554 (244884@main): <https://commits.webkit.org/244884@main>

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