Bug 217491

Summary: [GPU Process] Use correct GPU runtime settings when creating the dynamic IOKit sandbox extensions for the WebContent process
Product: WebKit Reporter: Per Arne Vollan <pvollan>
Component: WebKit Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, simon.fraser, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
youennf: review+
Patch none

Description Per Arne Vollan 2020-10-08 13:28:14 PDT
Currently, the creation of the dynamic IOKit sandbox extensions for the WebContent process is incorrectly using the same GPU runtime settings as when creating Media related dynamic mach-lookup extensions.
Comment 1 Per Arne Vollan 2020-10-08 13:28:50 PDT
<rdar://problem/70066087>
Comment 2 Per Arne Vollan 2020-10-08 14:13:32 PDT
Created attachment 410882 [details]
Patch
Comment 3 youenn fablet 2020-10-09 05:56:29 PDT
Comment on attachment 410882 [details]
Patch

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

> Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm:486
> +        || !m_defaultPageGroup->preferences().captureVideoInGPUProcessEnabled()

We can also capture in UIProcess, in which case we might not need the gpuIOKitExtensionHandles for capture purposes.
Comment 4 Per Arne Vollan 2020-10-09 10:29:06 PDT
Created attachment 410948 [details]
Patch
Comment 5 Per Arne Vollan 2020-10-09 10:29:28 PDT
(In reply to youenn fablet from comment #3)
> Comment on attachment 410882 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=410882&action=review
> 
> > Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm:486
> > +        || !m_defaultPageGroup->preferences().captureVideoInGPUProcessEnabled()
> 
> We can also capture in UIProcess, in which case we might not need the
> gpuIOKitExtensionHandles for capture purposes.

Thanks for reviewing! I have updated the patch.
Comment 6 EWS 2020-10-09 12:35:53 PDT
Committed r268278: <https://trac.webkit.org/changeset/268278>

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