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

Unified Diff: remoting/protocol/webrtc_video_stream.h

Issue 2413553003: Add InputEventTimestampSource interface. (Closed)
Patch Set: msvc compilation 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_connection_to_client.cc ('k') | remoting/protocol/webrtc_video_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/webrtc_video_stream.h
diff --git a/remoting/protocol/webrtc_video_stream.h b/remoting/protocol/webrtc_video_stream.h
index 3f96c010c82e4da37b89c5cb4a65d391139a437f..79d565a81e37beea28e108766a00a5c49c781cc1 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 SetEventTimestampsSource(scoped_refptr<InputEventTimestampsSource>
+ event_timestamps_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;
@@ -84,14 +85,13 @@ class WebrtcVideoStream : public VideoStream,
// Used to encode captured frames. Always accessed on the encode thread.
std::unique_ptr<WebrtcVideoEncoder> encoder_;
+ scoped_refptr<InputEventTimestampsSource> event_timestamps_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_;
« no previous file with comments | « remoting/protocol/webrtc_connection_to_client.cc ('k') | remoting/protocol/webrtc_video_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698