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

Unified Diff: remoting/protocol/webrtc_frame_scheduler.h

Issue 2425873002: Add network parameters fields in FrameStatsMessage (Closed)
Patch Set: . Created 4 years, 2 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 | « remoting/protocol/frame_stats.cc ('k') | remoting/protocol/webrtc_frame_scheduler_simple.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/webrtc_frame_scheduler.h
diff --git a/remoting/protocol/webrtc_frame_scheduler.h b/remoting/protocol/webrtc_frame_scheduler.h
index 3c15ff9f5eb1c7b9a208c4c6c637f41cc4f698d9..05cf6849b1a84c44477e3f67db41b74d3d1cd6bb 100644
--- a/remoting/protocol/webrtc_frame_scheduler.h
+++ b/remoting/protocol/webrtc_frame_scheduler.h
@@ -13,6 +13,7 @@
namespace remoting {
namespace protocol {
+struct HostFrameStats;
class VideoChannelStateObserver;
class WebrtcDummyVideoEncoderFactory;
@@ -39,10 +40,13 @@ class WebrtcFrameScheduler {
const webrtc::DesktopFrame& frame,
WebrtcVideoEncoder::FrameParams* params_out) = 0;
- // Called after a frame has been encoded and passed to the sender.
+ // Called after a frame has been encoded and passed to the sender. If
+ // |frame_stats| is not null then sets send_pending_delay, rtt_estimate and
+ // bandwidth_estimate_kbps fields.
virtual void OnFrameEncoded(
const WebrtcVideoEncoder::EncodedFrame& encoded_frame,
- const webrtc::EncodedImageCallback::Result& send_result) = 0;
+ const webrtc::EncodedImageCallback::Result& send_result,
+ HostFrameStats* frame_stats) = 0;
};
} // namespace protocol
« no previous file with comments | « remoting/protocol/frame_stats.cc ('k') | remoting/protocol/webrtc_frame_scheduler_simple.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698