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

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

Issue 1143363005: Revert of [Cast] Compute utilization metrics and add performance overlay. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/video_sender.h ('k') | media/cast/sender/vp8_encoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/sender/video_sender.cc
diff --git a/media/cast/sender/video_sender.cc b/media/cast/sender/video_sender.cc
index 383d802360b7541f5cee61ce21328acd46a8a37f..c44b0f713179b2ea06be292a5220a1c45040bf53 100644
--- a/media/cast/sender/video_sender.cc
+++ b/media/cast/sender/video_sender.cc
@@ -12,7 +12,6 @@
#include "base/trace_event/trace_event.h"
#include "media/cast/cast_defines.h"
#include "media/cast/net/cast_transport_config.h"
-#include "media/cast/sender/performance_metrics_overlay.h"
#include "media/cast/sender/video_encoder.h"
namespace media {
@@ -88,8 +87,6 @@
frames_in_encoder_(0),
last_bitrate_(0),
playout_delay_change_cb_(playout_delay_change_cb),
- last_reported_deadline_utilization_(-1.0),
- last_reported_lossy_utilization_(-1.0),
weak_factory_(this) {
video_encoder_ = VideoEncoder::Create(
cast_environment_,
@@ -197,12 +194,6 @@
return;
}
- MaybeRenderPerformanceMetricsOverlay(bitrate,
- frames_in_encoder_ + 1,
- last_reported_deadline_utilization_,
- last_reported_lossy_utilization_,
- video_frame.get());
-
if (video_encoder_->EncodeVideoFrame(
video_frame,
reference_time,
@@ -242,7 +233,7 @@
void VideoSender::OnEncodedVideoFrame(
int encoder_bitrate,
- scoped_ptr<SenderEncodedFrame> encoded_frame) {
+ scoped_ptr<EncodedFrame> encoded_frame) {
DCHECK(cast_environment_->CurrentlyOn(CastEnvironment::MAIN));
frames_in_encoder_--;
@@ -251,11 +242,6 @@
duration_in_encoder_ =
last_enqueued_frame_reference_time_ - encoded_frame->reference_time;
- last_reported_deadline_utilization_ = encoded_frame->deadline_utilization;
- last_reported_lossy_utilization_ = encoded_frame->lossy_utilization;
- // TODO(miu): Plumb-in a utilization feedback signal back to the producer of
- // the video frames. http://crbug.com/156767
-
SendEncodedFrame(encoder_bitrate, encoded_frame.Pass());
}
« no previous file with comments | « media/cast/sender/video_sender.h ('k') | media/cast/sender/vp8_encoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698