Bug 232547

Summary: Update GPU Process feature flags
Product: WebKit Reporter: Jon Lee <jonlee>
Component: WebKit Misc.Assignee: Jon Lee <jonlee>
Status: RESOLVED FIXED    
Severity: Normal CC: eric.carlson, ews-watchlist, glenn, jbedard, peng.liu6, sabouhallawa, simon.fraser, webkit-bug-importer, wenson_hsieh, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
wenson_hsieh: review+
Patch for landing
none
Patch for landing
none
Patch for landing none

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].