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

Unified Diff: chrome/browser/media/webrtc/webrtc_browsertest_base.h

Issue 2985263002: Reland of RTCVideoEncoder: Report H264 profile information to WebRTC (Closed)
Patch Set: Add default argument to SetDefaultVideoCodec Created 3 years, 4 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
Index: chrome/browser/media/webrtc/webrtc_browsertest_base.h
diff --git a/chrome/browser/media/webrtc/webrtc_browsertest_base.h b/chrome/browser/media/webrtc/webrtc_browsertest_base.h
index 5eadac555b97a2cfd0627dcc64e17ddd2a06ce44..f0b670bbd90d14913f407ba4855733db5af46d6a 100644
--- a/chrome/browser/media/webrtc/webrtc_browsertest_base.h
+++ b/chrome/browser/media/webrtc/webrtc_browsertest_base.h
@@ -193,8 +193,13 @@ class WebRtcTestBase : public InProcessBrowserTest {
// Change the default audio/video codec in the offer SDP.
void SetDefaultAudioCodec(content::WebContents* tab,
const std::string& audio_codec) const;
+ // |prefer_hw_codec| controls if the first or last codec with name
+ // |video_codec| should be selected. External video codecs are currently at
+ // the end of the SDP list. This parameter only matters if there are multiple
+ // codecs with the same name, which can be the case for H264.
void SetDefaultVideoCodec(content::WebContents* tab,
- const std::string& video_codec) const;
+ const std::string& video_codec,
+ bool prefer_hw_codec = false) const;
// Add 'usedtx=1' to the offer SDP.
void EnableOpusDtx(content::WebContents* tab) const;
« no previous file with comments | « chrome/browser/media/webrtc/webrtc_browsertest.cc ('k') | chrome/browser/media/webrtc/webrtc_browsertest_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698