Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Guard H264 simulcast with a runtime flag
https://bugs.webkit.org/show_bug.cgi?id=191025

Reviewed by Eric Carlson.

Source/WebCore:

Add a runtime flag for H264 simulcast and enable libwebrtc field trial based on it.
Covered by existing test.

* Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp:
(WebCore::LibWebRTCMediaEndpoint::LibWebRTCMediaEndpoint):
* page/RuntimeEnabledFeatures.h:
(WebCore::RuntimeEnabledFeatures::webRTCH264SimulcastEnabled const):
(WebCore::RuntimeEnabledFeatures::setWebRTCH264SimulcastEnabled):

Source/WebKit:

* Shared/WebPreferences.yaml:


Canonical link: https://commits.webkit.org/205847@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@237555 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
youennf committed Oct 29, 2018
1 parent 3ac76cf commit 914592b
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 1 deletion.
16 changes: 16 additions & 0 deletions Source/WebCore/ChangeLog
@@ -1,3 +1,19 @@
2018-10-29 Youenn Fablet <youenn@apple.com>

Guard H264 simulcast with a runtime flag
https://bugs.webkit.org/show_bug.cgi?id=191025

Reviewed by Eric Carlson.

Add a runtime flag for H264 simulcast and enable libwebrtc field trial based on it.
Covered by existing test.

* Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp:
(WebCore::LibWebRTCMediaEndpoint::LibWebRTCMediaEndpoint):
* page/RuntimeEnabledFeatures.h:
(WebCore::RuntimeEnabledFeatures::webRTCH264SimulcastEnabled const):
(WebCore::RuntimeEnabledFeatures::setWebRTCH264SimulcastEnabled):

2018-10-29 Zalan Bujtas <zalan@apple.com>

[LFC][IFC] Compute estimated margin top for inline formatting root's ancestors
Expand Down
Expand Up @@ -77,7 +77,8 @@ LibWebRTCMediaEndpoint::LibWebRTCMediaEndpoint(LibWebRTCPeerConnectionBackend& p
ASSERT(isMainThread());
ASSERT(client.factory());

webrtc::field_trial::InitFieldTrialsFromString("WebRTC-H264Simulcast/Enabled/");
if (RuntimeEnabledFeatures::sharedFeatures().webRTCH264SimulcastEnabled())
webrtc::field_trial::InitFieldTrialsFromString("WebRTC-H264Simulcast/Enabled/");
}

bool LibWebRTCMediaEndpoint::setConfiguration(LibWebRTCProvider& client, webrtc::PeerConnectionInterface::RTCConfiguration&& configuration)
Expand Down
3 changes: 3 additions & 0 deletions Source/WebCore/page/RuntimeEnabledFeatures.h
Expand Up @@ -216,6 +216,8 @@ class RuntimeEnabledFeatures {
void setPeerConnectionEnabled(bool isEnabled) { m_isPeerConnectionEnabled = isEnabled; }
bool mdnsICECandidatesEnabled() const { return m_mdnsICECandidatesEnabled; }
void setMDNSICECandidatesEnabled(bool isEnabled) { m_mdnsICECandidatesEnabled = isEnabled; }
bool webRTCH264SimulcastEnabled() const { return m_isWebRTCH264SimulcastEnabled; }
void setWebRTCH264SimulcastEnabled(bool isEnabled) { m_isWebRTCH264SimulcastEnabled = isEnabled; }
#endif

#if ENABLE(LEGACY_CSS_VENDOR_PREFIXES)
Expand Down Expand Up @@ -398,6 +400,7 @@ class RuntimeEnabledFeatures {
bool m_isWebRTCUnifiedPlanEnabled { true };
bool m_isPeerConnectionEnabled { true };
bool m_mdnsICECandidatesEnabled { false };
bool m_isWebRTCH264SimulcastEnabled { true };
#endif

#if ENABLE(LEGACY_CSS_VENDOR_PREFIXES)
Expand Down
9 changes: 9 additions & 0 deletions Source/WebKit/ChangeLog
@@ -1,3 +1,12 @@
2018-10-29 Youenn Fablet <youenn@apple.com>

Guard H264 simulcast with a runtime flag
https://bugs.webkit.org/show_bug.cgi?id=191025

Reviewed by Eric Carlson.

* Shared/WebPreferences.yaml:

2018-10-29 Chris Dumez <cdumez@apple.com>

[PSON] When Safari restores session state after launching, going back and forward does not swap processes
Expand Down
9 changes: 9 additions & 0 deletions Source/WebKit/Shared/WebPreferences.yaml
Expand Up @@ -523,6 +523,15 @@ WebRTCVP8CodecEnabled:
humanReadableDescription: "Enable WebRTC VP8 codec"
category: experimental

WebRTCH264SimulcastEnabled:
type: bool
defaultValue: true
webcoreBinding: RuntimeEnabledFeatures
condition: ENABLE(WEB_RTC)
humanReadableName: "WebRTC H264 Simulcast"
humanReadableDescription: "Enable WebRTC H264 Simulcast"
category: experimental

UseLegacyTextAlignPositionedElementBehavior:
type: bool
defaultValue: false
Expand Down

0 comments on commit 914592b

Please sign in to comment.