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

Side by Side Diff: webrtc/call/call.cc

Issue 1478253002: Add histogram stats for send delay for a sent video stream. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years 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 | « no previous file | webrtc/call/rtc_event_log_unittest.cc » ('j') | webrtc/common_types.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 for (auto& kv : video_receive_ssrcs_) { 561 for (auto& kv : video_receive_ssrcs_) {
562 kv.second->SignalNetworkState(state); 562 kv.second->SignalNetworkState(state);
563 } 563 }
564 } 564 }
565 } 565 }
566 566
567 void Call::OnSentPacket(const rtc::SentPacket& sent_packet) { 567 void Call::OnSentPacket(const rtc::SentPacket& sent_packet) {
568 if (first_packet_sent_ms_ == -1) 568 if (first_packet_sent_ms_ == -1)
569 first_packet_sent_ms_ = clock_->TimeInMilliseconds(); 569 first_packet_sent_ms_ = clock_->TimeInMilliseconds();
570 congestion_controller_->OnSentPacket(sent_packet); 570 congestion_controller_->OnSentPacket(sent_packet);
571
572 ReadLockScoped read_lock(*send_crit_);
573 for (VideoSendStream* stream : video_send_streams_) {
574 if (stream->OnSentPacket(sent_packet.packet_id))
stefan-webrtc 2016/01/18 19:48:25 Should there be a TODO here to use the sent_packet
åsapersson 2016/04/06 14:52:37 Done.
575 return;
576 }
571 } 577 }
572 578
573 void Call::OnNetworkChanged(uint32_t target_bitrate_bps, uint8_t fraction_loss, 579 void Call::OnNetworkChanged(uint32_t target_bitrate_bps, uint8_t fraction_loss,
574 int64_t rtt_ms) { 580 int64_t rtt_ms) {
575 uint32_t allocated_bitrate_bps = bitrate_allocator_->OnNetworkChanged( 581 uint32_t allocated_bitrate_bps = bitrate_allocator_->OnNetworkChanged(
576 target_bitrate_bps, fraction_loss, rtt_ms); 582 target_bitrate_bps, fraction_loss, rtt_ms);
577 583
578 int pad_up_to_bitrate_bps = 0; 584 int pad_up_to_bitrate_bps = 0;
579 { 585 {
580 ReadLockScoped read_lock(*send_crit_); 586 ReadLockScoped read_lock(*send_crit_);
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 // thread. Then this check can be enabled. 743 // thread. Then this check can be enabled.
738 // RTC_DCHECK(!configuration_thread_checker_.CalledOnValidThread()); 744 // RTC_DCHECK(!configuration_thread_checker_.CalledOnValidThread());
739 if (RtpHeaderParser::IsRtcp(packet, length)) 745 if (RtpHeaderParser::IsRtcp(packet, length))
740 return DeliverRtcp(media_type, packet, length); 746 return DeliverRtcp(media_type, packet, length);
741 747
742 return DeliverRtp(media_type, packet, length, packet_time); 748 return DeliverRtp(media_type, packet, length, packet_time);
743 } 749 }
744 750
745 } // namespace internal 751 } // namespace internal
746 } // namespace webrtc 752 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/call/rtc_event_log_unittest.cc » ('j') | webrtc/common_types.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698