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

Unified Diff: webrtc/api/videocapturertracksource.cc

Issue 2334683002: Add method cricket::VideoCapturer::NeedsDenoising, use in VideoCapturerTrackSource. (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | webrtc/media/base/videocapturer.h » ('j') | webrtc/media/base/videocapturer.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
pbos-webrtc 2016/09/12 14:50:45 Can you add test coverage for this? That would als
nisse-webrtc 2016/09/13 09:39:10 I can override it in FakeVideoCapturer. But not su
hta-webrtc 2016/09/13 09:46:27 Yes, that's a good test - that the value propagate
+ // 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/media/base/videocapturer.h » ('j') | webrtc/media/base/videocapturer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698