Skip to content

Commit 5412776

Browse files
asurdej-comcastphiln
authored andcommitted
[WebRTC] Use WebCore::LibWebRTCProvider by default
Instead of Network LibWebRTCProvided to lower CPU usage. Signed-off-by: Andrzej Surdej <Andrzej_Surdej@comcast.com>
1 parent 6054fce commit 5412776

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Source/WebKit/WebProcess/Network/webrtc/LibWebRTCProvider.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,12 @@ class LibWebRTCProvider final : public LibWebRTCProviderBase {
7878
#endif
7979
};
8080

81-
inline UniqueRef<LibWebRTCProvider> createLibWebRTCProvider(WebPage& page)
81+
inline UniqueRef<LibWebRTCProviderBase> createLibWebRTCProvider(WebPage& page)
8282
{
83-
return makeUniqueRef<LibWebRTCProvider>(page);
83+
// In downstream WPEWebKit WebProcess sandbox is disabled,
84+
// so moving LibWebRTC networking out of it doesn't make much sense.
85+
// For better performance keep it in WPEWebProcess
86+
return makeUniqueRef<LibWebRTCProviderBase>();
8487
}
8588

8689
#elif USE(GSTREAMER_WEBRTC)

0 commit comments

Comments
 (0)