| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "media/cast/video_sender/video_sender.h" | 5 #include "media/cast/video_sender/video_sender.h" |
| 6 | 6 |
| 7 #include <list> | 7 #include <list> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 ConvertTimeTicksToNtp(now, &ntp_seconds, &ntp_fraction); | 66 ConvertTimeTicksToNtp(now, &ntp_seconds, &ntp_fraction); |
| 67 } | 67 } |
| 68 // Populate sender info. | 68 // Populate sender info. |
| 69 sender_info->rtp_timestamp = rtp_timestamp; | 69 sender_info->rtp_timestamp = rtp_timestamp; |
| 70 sender_info->ntp_seconds = ntp_seconds; | 70 sender_info->ntp_seconds = ntp_seconds; |
| 71 sender_info->ntp_fraction = ntp_fraction; | 71 sender_info->ntp_fraction = ntp_fraction; |
| 72 sender_info->send_packet_count = sender_info_.send_packet_count; | 72 sender_info->send_packet_count = sender_info_.send_packet_count; |
| 73 sender_info->send_octet_count = sender_info_.send_octet_count; | 73 sender_info->send_octet_count = sender_info_.send_octet_count; |
| 74 } | 74 } |
| 75 | 75 |
| 76 void StoreStatistics(transport::RtcpSenderInfo& sender_info, | 76 void StoreStatistics(const transport::RtcpSenderInfo& sender_info, |
| 77 base::TimeTicks time_sent, | 77 base::TimeTicks time_sent, |
| 78 uint32 rtp_timestamp) { | 78 uint32 rtp_timestamp) { |
| 79 sender_info_ = sender_info; | 79 sender_info_ = sender_info; |
| 80 time_sent_ = time_sent; | 80 time_sent_ = time_sent; |
| 81 rtp_timestamp_ = rtp_timestamp; | 81 rtp_timestamp_ = rtp_timestamp; |
| 82 } | 82 } |
| 83 | 83 |
| 84 private: | 84 private: |
| 85 transport::CastTransportSender* const transport_sender_; | 85 transport::CastTransportSender* const transport_sender_; |
| 86 transport::RtcpSenderInfo sender_info_; | 86 transport::RtcpSenderInfo sender_info_; |
| (...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 | 480 |
| 481 void VideoSender::ResendPacketsOnTransportThread( | 481 void VideoSender::ResendPacketsOnTransportThread( |
| 482 const transport::MissingFramesAndPacketsMap& missing_packets) { | 482 const transport::MissingFramesAndPacketsMap& missing_packets) { |
| 483 DCHECK(cast_environment_->CurrentlyOn(CastEnvironment::TRANSPORT)); | 483 DCHECK(cast_environment_->CurrentlyOn(CastEnvironment::TRANSPORT)); |
| 484 last_send_time_ = cast_environment_->Clock()->NowTicks(); | 484 last_send_time_ = cast_environment_->Clock()->NowTicks(); |
| 485 transport_sender_->ResendPackets(false, missing_packets); | 485 transport_sender_->ResendPackets(false, missing_packets); |
| 486 } | 486 } |
| 487 | 487 |
| 488 } // namespace cast | 488 } // namespace cast |
| 489 } // namespace media | 489 } // namespace media |
| OLD | NEW |