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

Unified Diff: remoting/protocol/webrtc_frame_scheduler_simple.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/webrtc_frame_scheduler.h ('k') | remoting/protocol/webrtc_frame_scheduler_simple.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/webrtc_frame_scheduler_simple.h
diff --git a/remoting/protocol/webrtc_frame_scheduler_simple.h b/remoting/protocol/webrtc_frame_scheduler_simple.h
index f5f3702df83799f825994ef240314acfe724b7db..12855d1cc4643311dda1c4faaaa75130c2bcea8e 100644
--- a/remoting/protocol/webrtc_frame_scheduler_simple.h
+++ b/remoting/protocol/webrtc_frame_scheduler_simple.h
@@ -38,9 +38,9 @@ class WebrtcFrameSchedulerSimple : public VideoChannelStateObserver,
bool GetEncoderFrameParams(
const webrtc::DesktopFrame& frame,
WebrtcVideoEncoder::FrameParams* params_out) override;
- void OnFrameEncoded(
- const WebrtcVideoEncoder::EncodedFrame& encoded_frame,
- const webrtc::EncodedImageCallback::Result& send_result) override;
+ void OnFrameEncoded(const WebrtcVideoEncoder::EncodedFrame& encoded_frame,
+ const webrtc::EncodedImageCallback::Result& send_result,
+ HostFrameStats* frame_stats) override;
private:
void ScheduleNextFrame(base::TimeTicks now);
@@ -57,6 +57,8 @@ class WebrtcFrameSchedulerSimple : public VideoChannelStateObserver,
// Set to true when a frame is being captured or encoded.
bool frame_pending_ = false;
+ base::TimeDelta rtt_estimate_;
+
// Set to true when encoding unchanged frames for top-off.
bool top_off_is_active_ = false;
« no previous file with comments | « remoting/protocol/webrtc_frame_scheduler.h ('k') | remoting/protocol/webrtc_frame_scheduler_simple.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698