Source/WTF/ChangeLog

 12021-12-02 Jon Lee <jonlee@apple.com>
 2
 3 Update GPU Process feature flags
 4 https://bugs.webkit.org/show_bug.cgi?id=232547
 5 rdar://83905400
 6
 7 Reviewed by NOBODY (OOPS!).
 8
 9 Move features enabled by default to internal. DOM and WebGL are experimental.
 10
 11 * Scripts/Preferences/WebPreferencesExperimental.yaml:
 12 * Scripts/Preferences/WebPreferencesInternal.yaml:
 13
1142021-12-02 Per Arne Vollan <pvollan@apple.com>
215
316 [WP] Strengthen sandbox when AppCache is disabled

Source/WTF/Scripts/Preferences/WebPreferencesExperimental.yaml

@@CanvasColorSpaceEnabled:
361361 WebCore:
362362 default: false
363363
364 CaptureVideoInGPUProcessEnabled:
365  type: bool
366  humanReadableName: "GPU Process: Video Capture"
367  humanReadableDescription: "Enable video capture in GPU Process"
368  webcoreBinding: none
369  condition: ENABLE(MEDIA_STREAM)
370  exposed: [ WebKit ]
371  defaultValue:
372  WebKit:
373  default: WebKit::defaultCaptureVideoInGPUProcessEnabled()
374 
375364ContactPickerAPIEnabled:
376365 type: bool
377366 humanReadableName: "Contact Picker API"

@@TransformStreamAPIEnabled:
13721361 WebKit:
13731362 default: true
13741363
1375 UseGPUProcessForCanvasRenderingEnabled:
 1364UseGPUProcessForDOMRenderingEnabled:
13761365 type: bool
1377  humanReadableName: "GPU Process: Canvas Rendering"
1378  humanReadableDescription: "Enable canvas rendering in GPU Process"
 1366 humanReadableName: "GPU Process: DOM Rendering"
 1367 humanReadableDescription: "Enable DOM rendering in GPU Process"
13791368 webcoreBinding: none
1380  condition: ENABLE(GPU_PROCESS) && !(PLATFORM(GTK) || PLATFORM(WPE))
 1369 condition: ENABLE(GPU_PROCESS)
13811370 exposed: [ WebKit ]
13821371 defaultValue:
13831372 WebKit:
1384  default: defaultUseGPUProcessForCanvasRenderingEnabled()
1385 
1386 UseGPUProcessForMediaEnabled:
1387  type: bool
1388  humanReadableName: "GPU Process: Media"
1389  humanReadableDescription: "Do all media loading and playback in the GPU Process"
1390  webcoreBinding: none
1391  condition: ENABLE(GPU_PROCESS) && !USE(GSTREAMER)
1392  exposed: [ WebKit ]
1393  defaultValue:
1394  WebKit:
1395  default: WebKit::defaultUseGPUProcessForMediaEnabled()
 1373 default: defaultUseGPUProcessForDOMRenderingEnabled()
13961374
13971375UseGPUProcessForWebGLEnabled:
13981376 type: bool

@@WebRTCH265CodecEnabled:
16401618 WebCore:
16411619 default: false
16421620
1643 # FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely.
1644 WebRTCPlatformCodecsInGPUProcessEnabled:
1645  type: bool
1646  humanReadableName: "WebRTC Platform Codecs in GPU Process"
1647  humanReadableDescription: "Enable WebRTC Platform Codecs in GPU Process"
1648  condition: ENABLE(WEB_RTC)
1649  defaultValue:
1650  WebKitLegacy:
1651  default: false
1652  WebKit:
1653  default: WebKit::defaultWebRTCCodecsInGPUProcess()
1654  WebCore:
1655  default: false
1656 
16571621WebRTCPlatformTCPSocketsEnabled:
16581622 type: bool
16591623 humanReadableName: "WebRTC Platform TCP Sockets"

Source/WTF/Scripts/Preferences/WebPreferencesInternal.yaml

@@CaptureAudioInUIProcessEnabled:
154154 WebKit:
155155 default: WebKit::defaultCaptureAudioInUIProcessEnabled()
156156
 157CaptureVideoInGPUProcessEnabled:
 158 type: bool
 159 humanReadableName: "GPU Process: Video Capture"
 160 humanReadableDescription: "Enable video capture in GPU Process"
 161 webcoreBinding: none
 162 condition: ENABLE(MEDIA_STREAM)
 163 exposed: [ WebKit ]
 164 defaultValue:
 165 WebKit:
 166 default: WebKit::defaultCaptureVideoInGPUProcessEnabled()
 167
157168CaptureVideoInUIProcessEnabled:
158169 type: bool
159170 humanReadableName: "Capture video in UI Process"

@@UseCGDisplayListsForDOMRendering:
833844 WebKit:
834845 default: true
835846
836 UseGPUProcessForDOMRenderingEnabled:
 847UseGPUProcessForCanvasRenderingEnabled:
 848 type: bool
 849 humanReadableName: "GPU Process: Canvas Rendering"
 850 humanReadableDescription: "Enable canvas rendering in GPU Process"
 851 webcoreBinding: none
 852 condition: ENABLE(GPU_PROCESS) && !(PLATFORM(GTK) || PLATFORM(WPE))
 853 exposed: [ WebKit ]
 854 defaultValue:
 855 WebKit:
 856 default: defaultUseGPUProcessForCanvasRenderingEnabled()
 857
 858UseGPUProcessForMediaEnabled:
837859 type: bool
838  humanReadableName: "GPU Process: DOM Rendering"
839  humanReadableDescription: "Enable DOM rendering in GPU Process"
 860 humanReadableName: "GPU Process: Media"
 861 humanReadableDescription: "Do all media loading and playback in the GPU Process"
840862 webcoreBinding: none
841  condition: ENABLE(GPU_PROCESS)
 863 condition: ENABLE(GPU_PROCESS) && !USE(GSTREAMER)
842864 exposed: [ WebKit ]
843865 defaultValue:
844866 WebKit:
845  default: defaultUseGPUProcessForDOMRenderingEnabled()
 867 default: WebKit::defaultUseGPUProcessForMediaEnabled()
846868
847869UseSceneKitForModel:
848870 type: bool

@@WebRTCMDNSICECandidatesEnabled:
929951 WebKit:
930952 default: true
931953
 954# FIXME: This is not relevant for WebKitLegacy, so should be excluded from WebKitLegacy entirely.
 955WebRTCPlatformCodecsInGPUProcessEnabled:
 956 type: bool
 957 humanReadableName: "GPU Process: WebRTC Platform Codecs"
 958 humanReadableDescription: "Enable WebRTC Platform Codecs in GPU Process"
 959 condition: ENABLE(WEB_RTC)
 960 defaultValue:
 961 WebKitLegacy:
 962 default: false
 963 WebKit:
 964 default: WebKit::defaultWebRTCCodecsInGPUProcess()
 965 WebCore:
 966 default: false
 967
932968WebSQLEnabled:
933969 type: bool
934970 humanReadableName: "Enable WebSQL"

Tools/ChangeLog

 12021-12-02 Jon Lee <jonlee@apple.com>
 2
 3 Update GPU Process feature flags
 4 https://bugs.webkit.org/show_bug.cgi?id=232547
 5 rdar://83905400
 6
 7 Reviewed by NOBODY (OOPS!).
 8
 9 * Scripts/webkitpy/layout_tests/run_webkit_tests.py:
 10 (parse_args): Update features that are set when using `run-webkit-tests --use-gpu-process`.
 11 * WebKitTestRunner/TestOptions.cpp:
 12 (WTR::TestOptions::defaults): Turn off DOM Rendering on layout test bots for the time being.
 13
1142021-12-02 Jean-Yves Avenard <jya@apple.com>
215
316 Compilation error on Tools/TestWebKitAPI/Tests/WebKitCocoa/WebPushDaemon.mm

Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py

@@def parse_args(args):
374374 options.additional_expectations.insert(0, host.filesystem.join(host.scm().checkout_root, 'LayoutTests/gpu-process/TestExpectations'))
375375 if not options.internal_feature:
376376 options.internal_feature = []
377  options.internal_feature.append('UseGPUProcessForMediaEnabled')
378377 options.internal_feature.append('CaptureAudioInGPUProcessEnabled')
379378 options.internal_feature.append('CaptureVideoInGPUProcessEnabled')
380379 options.internal_feature.append('UseGPUProcessForCanvasRenderingEnabled')
381  options.internal_feature.append('UseGPUProcessForDOMRenderingEnabled')
 380 options.internal_feature.append('UseGPUProcessForMediaEnabled')
 381 options.internal_feature.append('WebRTCPlatformCodecsInGPUProcessEnabled')
382382 if not options.experimental_feature:
383383 options.experimental_feature = []
384  options.experimental_feature.append('WebRTCPlatformCodecsInGPUProcessEnabled')
 384 options.experimental_feature.append('UseGPUProcessForDOMRenderingEnabled')
385385 options.experimental_feature.append('UseGPUProcessForWebGLEnabled')
386386 if options.result_report_flavor:
387387 raise RuntimeError('--use-gpu-process implicitly sets the result flavor, this should not be overridden')

Tools/WebKitTestRunner/TestOptions.cpp

@@const TestFeatures& TestOptions::defaults()
124124#if PLATFORM(IOS_FAMILY_SIMULATOR)
125125 { "VP9DecoderEnabled", false },
126126#endif
 127#if ENABLE(GPU_PROCESS)
 128 { "UseGPUProcessForDOMRenderingEnabled", false },
 129#endif
127130#if ENABLE(GPU_PROCESS) && ENABLE(WEBGL)
128131 { "UseGPUProcessForWebGLEnabled", false },
129132#endif