| 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;
|
|
|