Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2482)

Unified Diff: content/renderer/media/webrtc/peer_connection_dependency_factory.cc

Issue 2024303003: Enable RTCVideoDecoder SW H264 fallback only when it is available (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/webrtc/peer_connection_dependency_factory.cc
diff --git a/content/renderer/media/webrtc/peer_connection_dependency_factory.cc b/content/renderer/media/webrtc/peer_connection_dependency_factory.cc
index 544b25e2c35445d10f8f980337071e3f570ce64a..c995d5009027f0a2726c2e14d798266e9f94332f 100644
--- a/content/renderer/media/webrtc/peer_connection_dependency_factory.cc
+++ b/content/renderer/media/webrtc/peer_connection_dependency_factory.cc
@@ -164,7 +164,9 @@ void PeerConnectionDependencyFactory::CreatePeerConnectionFactory() {
#if BUILDFLAG(RTC_USE_H264)
// Building /w |rtc_use_h264|, is the corresponding run-time feature enabled?
- if (base::FeatureList::IsEnabled(kWebRtcH264WithOpenH264FFmpeg)) {
+ if (base::FeatureList::IsEnabled(kWebRtcH264WithOpenH264FFmpeg) ||
+ base::CommandLine::ForCurrentProcess()->HasSwitch(
+ kEnableWebRtcHWH264Encoding)) {
hbos_chromium 2016/06/02 08:45:37 I don't think this is the right approach. If we're
emircan 2016/06/02 20:54:32 Done.
// |H264DecoderImpl| may be used which depends on FFmpeg, therefore we need
// to initialize FFmpeg before going further.
media::FFmpegGlue::InitializeFFmpeg();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698