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

Unified Diff: webrtc/api/videocapturertracksource.cc

Issue 2334683002: Add method cricket::VideoCapturer::NeedsDenoising, use in VideoCapturerTrackSource. (Closed)
Patch Set: Add tests for needs_denoising. Created 4 years, 3 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: webrtc/api/videocapturertracksource.cc
diff --git a/webrtc/api/videocapturertracksource.cc b/webrtc/api/videocapturertracksource.cc
index 1bf4bea1d0d779ec93eff06e55b73f1ebd998572..dd9b54872b196303d8c2a1f2b27963d019fe5158 100644
--- a/webrtc/api/videocapturertracksource.cc
+++ b/webrtc/api/videocapturertracksource.cc
@@ -320,6 +320,10 @@ void VideoCapturerTrackSource::Initialize(
}
}
+ // Get default from the capturer, overridden by constraints, if any.
+ // Note that Chrome no longer uses the webrtc constraints interface.
+ needs_denoising_ = video_capturer_->NeedsDenoising();
+
if (constraints) {
MediaConstraintsInterface::Constraints mandatory_constraints =
constraints->GetMandatory();
« no previous file with comments | « no previous file | webrtc/api/videocapturertracksource_unittest.cc » ('j') | webrtc/api/videocapturertracksource_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698