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.
Created attachment 426824 [details]
Comment on attachment 426824 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=426824&action=review
> + like we used to done, instead of doing it in the GPUProcessConnection constructor. It is safer to
s/used to done/used to do/
Committed r276460 (236920@main): <https://commits.webkit.org/236920@main>