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

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

Issue 2521923002: Revert of RTCVideoEncoder: Report H264 profile information to WebRTC (Closed)
Patch Set: Created 4 years, 1 month 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 eb2096dbb6261f5fea171df933f2dda4be2ff293..3cdab3f72fbc905a5cca7ec8cfde83439b189d59 100644
--- a/content/renderer/media/gpu/rtc_video_encoder_unittest.cc
+++ b/content/renderer/media/gpu/rtc_video_encoder_unittest.cc
@@ -89,19 +89,7 @@
void CreateEncoder(webrtc::VideoCodecType codec_type) {
DVLOG(3) << __FUNCTION__;
- 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