Bug 224937

Summary: Call RemoteMediaEngineConfigurationFactory::registerFactory() in WebProcess::setUseGPUProcessForMedia()
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: MediaAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: eric.carlson, jer.noble, peng.liu6, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch eric.carlson: review+

Chris Dumez
Reported 2021-04-22 09:33:43 PDT
Call RemoteMediaEngineConfigurationFactory::registerFactory() in WebProcess::setUseGPUProcessForMedia(), like we used to done, instead of doing it in the GPUProcessConnection constructor. It is safer to register the factory before we have a GPUProcessConnection and we wouldn't want things to behave differently depending on whether or not the GPUProcess is already launched. I made sure that this does not eagerly launch the GPUProcess.
Attachments
Patch (5.35 KB, patch)
2021-04-22 09:37 PDT, Chris Dumez
eric.carlson: review+
Chris Dumez
Comment 1 2021-04-22 09:37:40 PDT
Eric Carlson
Comment 2 2021-04-22 13:50:48 PDT
Comment on attachment 426824 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=426824&action=review > Source/WebKit/ChangeLog:9 > + like we used to done, instead of doing it in the GPUProcessConnection constructor. It is safer to s/used to done/used to do/
Chris Dumez
Comment 3 2021-04-22 13:53:00 PDT
Radar WebKit Bug Importer
Comment 4 2021-04-22 15:48:54 PDT
Note You need to log in before you can comment on or make changes to this bug.