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

Unified Diff: webrtc/media/base/videocapturer.cc

Issue 1766653002: Replace SetCapturer and SetCaptureDevice by SetSource. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Work-in-progress, after applying 1790633002. Created 4 years, 9 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/media/base/videocapturer.cc
diff --git a/webrtc/media/base/videocapturer.cc b/webrtc/media/base/videocapturer.cc
index 4923dddd967b76f1090b46670c016ff013543739..909d9591ef13bca4b2d4e26329195b2b5238f2c5 100644
--- a/webrtc/media/base/videocapturer.cc
+++ b/webrtc/media/base/videocapturer.cc
@@ -183,11 +183,6 @@ void VideoCapturer::set_frame_factory(VideoFrameFactory* frame_factory) {
}
}
-void VideoCapturer::GetStats(VideoFormat* last_captured_frame_format) {
- rtc::CritScope cs(&frame_stats_crit_);
- *last_captured_frame_format = last_captured_frame_format_;
-}
-
void VideoCapturer::RemoveSink(
rtc::VideoSinkInterface<cricket::VideoFrame>* sink) {
RTC_DCHECK(thread_checker_.CalledOnValidThread());
@@ -203,6 +198,13 @@ void VideoCapturer::AddOrUpdateSink(
OnSinkWantsChanged(broadcaster_.wants());
}
+void VideoCapturer::GetInfo(rtc::VideoSourceInfo *info) {
+ rtc::CritScope cs(&frame_stats_crit_);
+ info->orig_width = last_captured_frame_format_.width;
+ info->orig_height = last_captured_frame_format_.height;
+}
+
+
void VideoCapturer::OnSinkWantsChanged(const rtc::VideoSinkWants& wants) {
RTC_DCHECK(thread_checker_.CalledOnValidThread());
apply_rotation_ = wants.rotation_applied;

Powered by Google App Engine
This is Rietveld 408576698