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

Unified Diff: media/cast/sender/external_video_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 | « media/cast/sender/audio_encoder_unittest.cc ('k') | media/cast/sender/fake_software_video_encoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/sender/external_video_encoder.cc
diff --git a/media/cast/sender/external_video_encoder.cc b/media/cast/sender/external_video_encoder.cc
index ce55791acdb20034cebda2bed3a81e2bf0746f6d..70a57772c2289b374c00a6e4519831da81f9c9ed 100644
--- a/media/cast/sender/external_video_encoder.cc
+++ b/media/cast/sender/external_video_encoder.cc
@@ -60,7 +60,7 @@ struct InProgressFrameEncode {
const int target_bit_rate;
// The real-world encode start time. This is used to compute the encoded
- // frame's |deadline_utilization| and so it uses the real-world clock instead
+ // frame's |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;
@@ -307,11 +307,11 @@ class ExternalVideoEncoder::VEAClientImpl
if (request.video_frame->metadata()->GetTimeDelta(
media::VideoFrameMetadata::FRAME_DURATION, &frame_duration) &&
frame_duration > base::TimeDelta()) {
- // Compute deadline utilization as the real-world time elapsed divided
+ // Compute encoder utilization as the real-world time elapsed divided
// by the frame duration.
const base::TimeDelta processing_time =
base::TimeTicks::Now() - request.start_time;
- encoded_frame->deadline_utilization =
+ encoded_frame->encoder_utilization =
processing_time.InSecondsF() / frame_duration.InSecondsF();
const double actual_bit_rate =
« no previous file with comments | « media/cast/sender/audio_encoder_unittest.cc ('k') | media/cast/sender/fake_software_video_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698