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

Side by Side Diff: webrtc/api/rtcstatscollector.cc

Issue 2606033002: RTCMediaStreamTrackStats.framesSent collected by RTCStatsCollector. (Closed)
Patch Set: Rebase with master Created 3 years, 11 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 unified diff | Download patch
« no previous file with comments | « webrtc/api/rtcstats_integrationtest.cc ('k') | webrtc/api/rtcstatscollector_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 timestamp_us, 403 timestamp_us,
404 RTCMediaStreamTrackKind::kVideo)); 404 RTCMediaStreamTrackKind::kVideo));
405 SetMediaStreamTrackStatsFromMediaStreamTrackInterface( 405 SetMediaStreamTrackStatsFromMediaStreamTrackInterface(
406 video_track, video_track_stats.get()); 406 video_track, video_track_stats.get());
407 video_track_stats->remote_source = false; 407 video_track_stats->remote_source = false;
408 video_track_stats->detached = false; 408 video_track_stats->detached = false;
409 video_track_stats->frame_width = static_cast<uint32_t>( 409 video_track_stats->frame_width = static_cast<uint32_t>(
410 video_sender_info.send_frame_width); 410 video_sender_info.send_frame_width);
411 video_track_stats->frame_height = static_cast<uint32_t>( 411 video_track_stats->frame_height = static_cast<uint32_t>(
412 video_sender_info.send_frame_height); 412 video_sender_info.send_frame_height);
413 // TODO(hbos): Will reduce this by frames dropped due to congestion control
414 // when available. crbug.com/659137
415 video_track_stats->frames_sent = video_sender_info.frames_encoded;
413 return video_track_stats; 416 return video_track_stats;
414 } 417 }
415 418
416 std::unique_ptr<RTCMediaStreamTrackStats> 419 std::unique_ptr<RTCMediaStreamTrackStats>
417 ProduceMediaStreamTrackStatsFromVideoReceiverInfo( 420 ProduceMediaStreamTrackStatsFromVideoReceiverInfo(
418 int64_t timestamp_us, 421 int64_t timestamp_us,
419 const VideoTrackInterface& video_track, 422 const VideoTrackInterface& video_track,
420 const cricket::VideoReceiverInfo& video_receiver_info) { 423 const cricket::VideoReceiverInfo& video_receiver_info) {
421 std::unique_ptr<RTCMediaStreamTrackStats> video_track_stats( 424 std::unique_ptr<RTCMediaStreamTrackStats> video_track_stats(
422 new RTCMediaStreamTrackStats( 425 new RTCMediaStreamTrackStats(
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after
1210 const std::string& type) { 1213 const std::string& type) {
1211 return CandidateTypeToRTCIceCandidateType(type); 1214 return CandidateTypeToRTCIceCandidateType(type);
1212 } 1215 }
1213 1216
1214 const char* DataStateToRTCDataChannelStateForTesting( 1217 const char* DataStateToRTCDataChannelStateForTesting(
1215 DataChannelInterface::DataState state) { 1218 DataChannelInterface::DataState state) {
1216 return DataStateToRTCDataChannelState(state); 1219 return DataStateToRTCDataChannelState(state);
1217 } 1220 }
1218 1221
1219 } // namespace webrtc 1222 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/api/rtcstats_integrationtest.cc ('k') | webrtc/api/rtcstatscollector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698