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

Unified Diff: content/renderer/media/gpu/rtc_video_encoder_factory.cc

Issue 2839823002: Android: enable HW encoding (Closed)
Patch Set: Created 3 years, 8 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 | « content/public/common/content_switches.cc ('k') | gpu/config/software_rendering_list.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/gpu/rtc_video_encoder_factory.cc
diff --git a/content/renderer/media/gpu/rtc_video_encoder_factory.cc b/content/renderer/media/gpu/rtc_video_encoder_factory.cc
index 56d28bc2347d1859b27b14e97073e75f97363eca..1b01db8863dfa1b7370a594d7ffa412428a50e8f 100644
--- a/content/renderer/media/gpu/rtc_video_encoder_factory.cc
+++ b/content/renderer/media/gpu/rtc_video_encoder_factory.cc
@@ -27,10 +27,9 @@ void VEAToWebRTCCodecs(
const int fps = profile.max_framerate_numerator;
DCHECK_EQ(profile.max_framerate_denominator, 1U);
- const base::CommandLine* cmd_line = base::CommandLine::ForCurrentProcess();
if (profile.profile >= media::VP8PROFILE_MIN &&
profile.profile <= media::VP8PROFILE_MAX) {
- if (!cmd_line->HasSwitch(switches::kDisableWebRtcHWVP8Encoding)) {
+ if (base::FeatureList::IsEnabled(features::kWebRtcHWVP8Encoding)) {
codecs->push_back(cricket::WebRtcVideoEncoderFactory::VideoCodec(
webrtc::kVideoCodecVP8, "VP8", width, height, fps));
}
« no previous file with comments | « content/public/common/content_switches.cc ('k') | gpu/config/software_rendering_list.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698