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

Unified Diff: remoting/host/video_scheduler.h

Issue 836183002: Rename sequence_number to timestamp. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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/host/client_session.cc ('k') | remoting/host/video_scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/video_scheduler.h
diff --git a/remoting/host/video_scheduler.h b/remoting/host/video_scheduler.h
index 825f07af6f14271d57253e732d14fcd63a563732..3bcf27723f9d64f08ad97ba9d9c08e3c784dfbe0 100644
--- a/remoting/host/video_scheduler.h
+++ b/remoting/host/video_scheduler.h
@@ -114,9 +114,9 @@ class VideoScheduler : public base::RefCountedThreadSafe<VideoScheduler>,
// only affects capture scheduling and does not stop/start the capturer.
void Pause(bool pause);
- // Updates the sequence number embedded in VideoPackets.
- // Sequence numbers are used for performance measurements.
- void UpdateSequenceNumber(int64 sequence_number);
+ // Updates event timestamp from the last event received from the client. This
+ // value is sent back to the client for roundtrip latency estimates.
+ void SetLatestEventTimestamp(int64 latest_event_timestamp);
// Sets whether the video encoder should be requested to encode losslessly,
// or to use a lossless color space (typically requiring higher bandwidth).
@@ -166,10 +166,10 @@ class VideoScheduler : public base::RefCountedThreadSafe<VideoScheduler>,
// Encode a frame, passing generated VideoPackets to SendVideoPacket().
void EncodeFrame(scoped_ptr<webrtc::DesktopFrame> frame,
- int64 sequence_number,
+ int64 latest_event_timestamp,
base::TimeTicks timestamp);
- void EncodedDataAvailableCallback(int64 sequence_number,
+ void EncodedDataAvailableCallback(int64 latest_event_timestamp,
scoped_ptr<VideoPacket> packet);
// Task runners used by this class.
@@ -213,7 +213,7 @@ class VideoScheduler : public base::RefCountedThreadSafe<VideoScheduler>,
bool is_paused_;
// Number updated by the caller to trace performance.
- int64 sequence_number_;
+ int64 latest_event_timestamp_;
// An object to schedule capturing.
CaptureScheduler scheduler_;
« no previous file with comments | « remoting/host/client_session.cc ('k') | remoting/host/video_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698