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

Unified Diff: remoting/protocol/webrtc_video_stream.h

Issue 2413553003: Add InputEventTimestampSource interface. (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
Index: remoting/protocol/webrtc_video_stream.h
diff --git a/remoting/protocol/webrtc_video_stream.h b/remoting/protocol/webrtc_video_stream.h
index fc0177083330d8eb128c276bcd855807d886dd1c..9b4623d030e3590bf7180da88a1e3498a55ecdba 100644
--- a/remoting/protocol/webrtc_video_stream.h
+++ b/remoting/protocol/webrtc_video_stream.h
@@ -46,8 +46,9 @@ class WebrtcVideoStream : public VideoStream,
scoped_refptr<base::SingleThreadTaskRunner> encode_task_runner);
// VideoStream interface.
+ void SetEventTimestampSource(
+ scoped_refptr<InputEventTimestampSource> event_timestamp_source) override;
void Pause(bool pause) override;
- void OnInputEventReceived(int64_t event_timestamp) override;
void SetLosslessEncode(bool want_lossless) override;
void SetLosslessColor(bool want_lossless) override;
void SetObserver(Observer* observer) override;
@@ -87,14 +88,13 @@ class WebrtcVideoStream : public VideoStream,
// Used to encode captured frames. Always accessed on the encode thread.
std::unique_ptr<WebrtcVideoEncoder> encoder_;
+ scoped_refptr<InputEventTimestampSource> event_timestamp_source_;
+
scoped_refptr<webrtc::PeerConnectionInterface> peer_connection_;
scoped_refptr<webrtc::MediaStreamInterface> stream_;
HostVideoStatsDispatcher video_stats_dispatcher_;
- // Timestamps for the frame to be captured next.
- std::unique_ptr<FrameTimestamps> next_frame_timestamps_;
-
// Timestamps for the frame that's being captured.
std::unique_ptr<FrameTimestamps> captured_frame_timestamps_;

Powered by Google App Engine
This is Rietveld 408576698