Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(654)

Unified Diff: media/cast/sender/performance_metrics_overlay.cc

Issue 2103043005: media/cast/sender: Rename deadline_utilization to encoder_utilization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/cast/sender/performance_metrics_overlay.h ('k') | media/cast/sender/sender_encoded_frame.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/sender/performance_metrics_overlay.cc
diff --git a/media/cast/sender/performance_metrics_overlay.cc b/media/cast/sender/performance_metrics_overlay.cc
index bdbfa695f0ba74324d4cb5bc7e0364e9205c5c25..389b6f37cd8c387a423e0f963f19700f04ad084a 100644
--- a/media/cast/sender/performance_metrics_overlay.cc
+++ b/media/cast/sender/performance_metrics_overlay.cc
@@ -218,7 +218,7 @@ void MaybeRenderPerformanceMetricsOverlay(base::TimeDelta target_playout_delay,
bool in_low_latency_mode,
int target_bitrate,
int frames_ago,
- double deadline_utilization,
+ double encoder_utilization,
double lossy_utilization,
VideoFrame* frame) {
if (VideoFrame::PlaneHorizontalBitsPerPixel(frame->format(), kPlane) != 8) {
@@ -299,16 +299,13 @@ void MaybeRenderPerformanceMetricsOverlay(base::TimeDelta target_playout_delay,
return;
// Line 1: Recent utilization metrics.
- const int deadline_pct =
- base::saturated_cast<int>(deadline_utilization * 100.0 + 0.5);
+ const int encoder_pct =
+ base::saturated_cast<int>(encoder_utilization * 100.0 + 0.5);
const int lossy_pct =
base::saturated_cast<int>(lossy_utilization * 100.0 + 0.5);
- RenderLineOfText(base::StringPrintf("%d %3.1d%% %3.1d%%",
- frames_ago,
- deadline_pct,
- lossy_pct),
- top,
- frame);
+ RenderLineOfText(base::StringPrintf("%d %3.1d%% %3.1d%%", frames_ago,
+ encoder_pct, lossy_pct),
+ top, frame);
}
} // namespace cast
« no previous file with comments | « media/cast/sender/performance_metrics_overlay.h ('k') | media/cast/sender/sender_encoded_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698