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

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

Issue 2973253002: Revert of TCVideoEncoder: Report H264 profile information to WebRTC (Closed)
Patch Set: Created 3 years, 5 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/renderer/media/gpu/rtc_video_encoder_factory.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/gpu/rtc_video_encoder_unittest.cc
diff --git a/content/renderer/media/gpu/rtc_video_encoder_unittest.cc b/content/renderer/media/gpu/rtc_video_encoder_unittest.cc
index 889b024926c8d2c757ede21bac6462005c396927..3fd7a91b3ac29dee1c74381b4dda3cf36aff5060 100644
--- a/content/renderer/media/gpu/rtc_video_encoder_unittest.cc
+++ b/content/renderer/media/gpu/rtc_video_encoder_unittest.cc
@@ -113,19 +113,7 @@
void CreateEncoder(webrtc::VideoCodecType codec_type) {
DVLOG(3) << __func__;
- media::VideoCodecProfile media_profile;
- switch (codec_type) {
- case webrtc::kVideoCodecVP8:
- media_profile = media::VP8PROFILE_ANY;
- break;
- case webrtc::kVideoCodecH264:
- media_profile = media::H264PROFILE_BASELINE;
- break;
- default:
- ADD_FAILURE() << "Unexpected codec type: " << codec_type;
- media_profile = media::VIDEO_CODEC_PROFILE_UNKNOWN;
- }
- rtc_encoder_ = base::MakeUnique<RTCVideoEncoder>(media_profile,
+ rtc_encoder_ = base::MakeUnique<RTCVideoEncoder>(codec_type,
mock_gpu_factories_.get());
}
« no previous file with comments | « content/renderer/media/gpu/rtc_video_encoder_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698