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

Unified Diff: webrtc/api/videocapturertracksource.cc

Issue 1827023002: Get VideoCapturer stats via VideoTrackSourceInterface in StatsCollector, (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. 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/api/videocapturertracksource.cc
diff --git a/webrtc/api/videocapturertracksource.cc b/webrtc/api/videocapturertracksource.cc
index 1e9e35382c93e49b3d3f2da786b6048988d1f02f..66e372f5ac126927ab0437674f4c5e312ce1b6b5 100644
--- a/webrtc/api/videocapturertracksource.cc
+++ b/webrtc/api/videocapturertracksource.cc
@@ -360,6 +360,11 @@ void VideoCapturerTrackSource::Initialize(
// Initialize hasn't succeeded until a successful state change has occurred.
}
+bool VideoCapturerTrackSource::GetStats(Stats* stats) {
+ return video_capturer_->GetInputSize(&stats->input_width,
+ &stats->input_height);
+}
+
void VideoCapturerTrackSource::Stop() {
if (!started_) {
return;

Powered by Google App Engine
This is Rietveld 408576698