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/transport/pacing/paced_sender.h" | 5 #include "media/cast/transport/pacing/paced_sender.h" |
6 | 6 |
7 #include "base/big_endian.h" | 7 #include "base/big_endian.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "media/cast/logging/logging_impl.h" |
10 | 11 |
11 namespace media { | 12 namespace media { |
12 namespace cast { | 13 namespace cast { |
13 namespace transport { | 14 namespace transport { |
14 | 15 |
15 namespace { | 16 namespace { |
16 | 17 |
17 static const int64 kPacingIntervalMs = 10; | 18 static const int64 kPacingIntervalMs = 10; |
18 // Each frame will be split into no more than kPacingMaxBurstsPerFrame | 19 // Each frame will be split into no more than kPacingMaxBurstsPerFrame |
19 // bursts of packets. | 20 // bursts of packets. |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 } | 252 } |
252 | 253 |
253 EventMediaType media_type = is_audio ? AUDIO_EVENT : VIDEO_EVENT; | 254 EventMediaType media_type = is_audio ? AUDIO_EVENT : VIDEO_EVENT; |
254 logging_->InsertSinglePacketEvent(clock_->NowTicks(), event, media_type, | 255 logging_->InsertSinglePacketEvent(clock_->NowTicks(), event, media_type, |
255 packet); | 256 packet); |
256 } | 257 } |
257 | 258 |
258 } // namespace transport | 259 } // namespace transport |
259 } // namespace cast | 260 } // namespace cast |
260 } // namespace media | 261 } // namespace media |
OLD | NEW |