Bug 224907

Summary: Call RemoteCDMFactory::registerFactory() in WebProcess::setUseGPUProcessForMedia()
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebKit2Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: eric.carlson, jer.noble, kkinnunen, lingcherd_ho, peng.liu6, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 224905    
Bug Blocks:    
Attachments:
Description Flags
Patch none

Description Chris Dumez 2021-04-21 17:21:44 PDT
Call RemoteCDMFactory::registerFactory() in WebProcess::setUseGPUProcessForMedia(), like we did before r275887. This is safer as it makes sure the CDMFactory gets registered even if the GPUProcess has not launched yet.
This is also more consistent with what we do for LegacyCDM since Bug 224905.
Comment 1 Chris Dumez 2021-04-21 17:25:24 PDT
Created attachment 426758 [details]
Patch
Comment 2 Chris Dumez 2021-04-21 18:00:07 PDT
Dependency has landed. The patch should now build.
Comment 3 EWS 2021-04-22 09:04:21 PDT
Committed r276437 (236900@main): <https://commits.webkit.org/236900@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 426758 [details].
Comment 4 Ling Ho 2021-04-22 16:14:07 PDT
<rdar://77027879>