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 "base/debug/trace_event.h" | 7 #include "base/trace_event/trace_event.h" |
8 | 8 |
9 namespace media { | 9 namespace media { |
10 namespace cast { | 10 namespace cast { |
11 namespace { | 11 namespace { |
12 | 12 |
13 const int kMinSchedulingDelayMs = 1; | 13 const int kMinSchedulingDelayMs = 1; |
14 const int kNumAggressiveReportsSentAtStart = 100; | 14 const int kNumAggressiveReportsSentAtStart = 100; |
15 | 15 |
16 // The additional number of frames that can be in-flight when input exceeds the | 16 // The additional number of frames that can be in-flight when input exceeds the |
17 // maximum frame rate. | 17 // maximum frame rate. |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 VLOG(1) << SENDER_SSRC << "Dropping: In-flight duration would be too high."; | 377 VLOG(1) << SENDER_SSRC << "Dropping: In-flight duration would be too high."; |
378 return true; | 378 return true; |
379 } | 379 } |
380 | 380 |
381 // Next frame is accepted. | 381 // Next frame is accepted. |
382 return false; | 382 return false; |
383 } | 383 } |
384 | 384 |
385 } // namespace cast | 385 } // namespace cast |
386 } // namespace media | 386 } // namespace media |
OLD | NEW |