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

Unified Diff: media/cast/sender/audio_encoder.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 | « no previous file | media/cast/sender/audio_encoder_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/sender/audio_encoder.cc
diff --git a/media/cast/sender/audio_encoder.cc b/media/cast/sender/audio_encoder.cc
index 9a353435c4f5cc84c6db17558fca2a1fa63c17f3..6d93d17e596615d5bb48723df73cdfe25b667eeb 100644
--- a/media/cast/sender/audio_encoder.cc
+++ b/media/cast/sender/audio_encoder.cc
@@ -124,7 +124,7 @@ class AudioEncoder::ImplBase
// Encode all audio in |audio_bus| into zero or more frames.
int src_pos = 0;
while (src_pos < audio_bus->frames()) {
- // Note: This is used to compute the deadline utilization and so it uses
+ // Note: This is used to compute the encoder utilization and so it uses
// the real-world clock instead of the CastEnvironment clock, the latter
// of which might be simulated.
const base::TimeTicks start_time = base::TimeTicks::Now();
@@ -152,15 +152,15 @@ class AudioEncoder::ImplBase
"rtp_timestamp",
frame_rtp_timestamp_.lower_32_bits());
if (EncodeFromFilledBuffer(&audio_frame->data)) {
- // Compute deadline utilization as the real-world time elapsed divided
+ // Compute encoder utilization as the real-world time elapsed divided
// by the signal duration.
- audio_frame->deadline_utilization =
+ audio_frame->encoder_utilization =
(base::TimeTicks::Now() - start_time).InSecondsF() /
- frame_duration_.InSecondsF();
+ frame_duration_.InSecondsF();
TRACE_EVENT_ASYNC_END1("cast.stream", "Audio Encode", audio_frame.get(),
- "Deadline utilization",
- audio_frame->deadline_utilization);
+ "encoder_utilization",
+ audio_frame->encoder_utilization);
audio_frame->encode_completion_time =
cast_environment_->Clock()->NowTicks();
« no previous file with comments | « no previous file | media/cast/sender/audio_encoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698