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

Unified Diff: content/renderer/media/media_stream_dependency_factory.cc

Issue 37793005: move the APM to chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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: content/renderer/media/media_stream_dependency_factory.cc
diff --git a/content/renderer/media/media_stream_dependency_factory.cc b/content/renderer/media/media_stream_dependency_factory.cc
index 1a7fd531f868fe6ba2c735e7e6d1b77743e65275..173cb2e299f1b17b282be9978417a2f85ec86d5f 100644
--- a/content/renderer/media/media_stream_dependency_factory.cc
+++ b/content/renderer/media/media_stream_dependency_factory.cc
@@ -321,7 +321,8 @@ void MediaStreamDependencyFactory::CreateNativeMediaSources(
// support multiple microphones. See issue crbug/262117 .
const StreamDeviceInfo device_info = source_data->device_info();
scoped_refptr<WebRtcAudioCapturer> capturer(
- MaybeCreateAudioCapturer(render_view_id, device_info));
+ MaybeCreateAudioCapturer(render_view_id, device_info,
+ &native_audio_constraints));
if (!capturer.get()) {
DLOG(WARNING) << "Failed to create the capturer for device "
<< device_info.device.id;
@@ -807,7 +808,8 @@ void MediaStreamDependencyFactory::CleanupPeerConnectionFactory() {
scoped_refptr<WebRtcAudioCapturer>
MediaStreamDependencyFactory::MaybeCreateAudioCapturer(
int render_view_id,
- const StreamDeviceInfo& device_info) {
+ const StreamDeviceInfo& device_info,
+ const RTCMediaConstraints* constraints) {
// TODO(xians): Handle the cases when gUM is called without a proper render
// view, for example, by an extension.
DCHECK_GE(render_view_id, 0);
@@ -832,7 +834,8 @@ MediaStreamDependencyFactory::MaybeCreateAudioCapturer(
device_info.session_id,
device_info.device.id,
device_info.device.matched_output.sample_rate,
- device_info.device.matched_output.frames_per_buffer)) {
+ device_info.device.matched_output.frames_per_buffer,
+ constraints)) {
return NULL;
}

Powered by Google App Engine
This is Rietveld 408576698