| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/performance_metrics_overlay.h" | 5 #include "media/cast/sender/performance_metrics_overlay.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
| 7 #include <algorithm> | 10 #include <algorithm> |
| 8 #include <string> | 11 #include <string> |
| 9 | 12 |
| 10 #include "base/logging.h" | 13 #include "base/logging.h" |
| 11 #include "base/numerics/safe_conversions.h" | 14 #include "base/numerics/safe_conversions.h" |
| 12 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
| 13 #include "media/base/video_frame.h" | 16 #include "media/base/video_frame.h" |
| 14 | 17 |
| 15 namespace media { | 18 namespace media { |
| 16 namespace cast { | 19 namespace cast { |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 RenderLineOfText(base::StringPrintf("%d %3.1d%% %3.1d%%", | 306 RenderLineOfText(base::StringPrintf("%d %3.1d%% %3.1d%%", |
| 304 frames_ago, | 307 frames_ago, |
| 305 deadline_pct, | 308 deadline_pct, |
| 306 lossy_pct), | 309 lossy_pct), |
| 307 top, | 310 top, |
| 308 frame); | 311 frame); |
| 309 } | 312 } |
| 310 | 313 |
| 311 } // namespace cast | 314 } // namespace cast |
| 312 } // namespace media | 315 } // namespace media |
| OLD | NEW |