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

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

Issue 2549283002: Android: enable WebRTC HW H264 with a flag by default (Closed)
Patch Set: Created 4 years 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
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 f503eebadc43a48e943c7a61a8e4cd1a07221f98..54cbbb0c7bd3d17b2aaafe1bd08b437b2a2731c5 100644
--- a/content/renderer/media/webrtc/peer_connection_dependency_factory.cc
+++ b/content/renderer/media/webrtc/peer_connection_dependency_factory.cc
@@ -24,6 +24,7 @@
#include "build/build_config.h"
#include "content/common/media/media_stream_messages.h"
#include "content/public/common/content_client.h"
+#include "content/public/common/content_features.h"
#include "content/public/common/content_switches.h"
#include "content/public/common/feature_h264_with_openh264_ffmpeg.h"
#include "content/public/common/features.h"
@@ -239,8 +240,7 @@ void PeerConnectionDependencyFactory::InitializeSignalingThread(
decoder_factory.reset(new RTCVideoDecoderFactory(gpu_factories));
if (!cmd_line->HasSwitch(switches::kDisableWebRtcHWEncoding) ||
- !cmd_line->GetSwitchValueASCII(switches::kDisableWebRtcHWEncoding)
- .empty()) {
+ base::FeatureList::IsEnabled(features::kWebRtcHWH264EncodingAndroid)) {
encoder_factory.reset(new RTCVideoEncoderFactory(gpu_factories));
}
}

Powered by Google App Engine
This is Rietveld 408576698