OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/sender/frame_sender.h" | 5 #include "media/cast/sender/frame_sender.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
| 11 #include "base/macros.h" |
11 #include "base/trace_event/trace_event.h" | 12 #include "base/trace_event/trace_event.h" |
12 #include "media/cast/cast_defines.h" | 13 #include "media/cast/cast_defines.h" |
13 #include "media/cast/constants.h" | 14 #include "media/cast/constants.h" |
14 #include "media/cast/sender/sender_encoded_frame.h" | 15 #include "media/cast/sender/sender_encoded_frame.h" |
15 | 16 |
16 namespace media { | 17 namespace media { |
17 namespace cast { | 18 namespace cast { |
18 namespace { | 19 namespace { |
19 | 20 |
20 const int kMinSchedulingDelayMs = 1; | 21 const int kMinSchedulingDelayMs = 1; |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 VLOG(1) << SENDER_SSRC << "Dropping: In-flight duration would be too high."; | 420 VLOG(1) << SENDER_SSRC << "Dropping: In-flight duration would be too high."; |
420 return true; | 421 return true; |
421 } | 422 } |
422 | 423 |
423 // Next frame is accepted. | 424 // Next frame is accepted. |
424 return false; | 425 return false; |
425 } | 426 } |
426 | 427 |
427 } // namespace cast | 428 } // namespace cast |
428 } // namespace media | 429 } // namespace media |
OLD | NEW |