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

Unified Diff: remoting/protocol/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/video_frame_pump.cc ('k') | remoting/protocol/webrtc_connection_to_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/video_stream.h
diff --git a/remoting/protocol/video_stream.h b/remoting/protocol/video_stream.h
index 06045b2c31e087cabc6438fb5b4c4ebf21e7b396..e97bf23642e3acfbf797421e6b1b01887d5068f2 100644
--- a/remoting/protocol/video_stream.h
+++ b/remoting/protocol/video_stream.h
@@ -10,6 +10,7 @@
#include <cstdint>
#include "base/callback_forward.h"
+#include "remoting/protocol/input_event_timestamps.h"
namespace webrtc {
class DesktopSize;
@@ -33,13 +34,14 @@ class VideoStream {
VideoStream() {}
virtual ~VideoStream() {}
+ // Sets event timestamps source to be used for the video stream.
+ virtual void SetEventTimestampsSource(
+ scoped_refptr<InputEventTimestampsSource> event_timestamps_source) = 0;
+
// Pauses or resumes scheduling of frame captures. Pausing/resuming captures
// only affects capture scheduling and does not stop/start the capturer.
virtual void Pause(bool pause) = 0;
- // Should be called whenever an input event is received.
- virtual void OnInputEventReceived(int64_t event_timestamp) = 0;
-
// Sets whether the video encoder should be requested to encode losslessly,
// or to use a lossless color space (typically requiring higher bandwidth).
virtual void SetLosslessEncode(bool want_lossless) = 0;
« no previous file with comments | « remoting/protocol/video_frame_pump.cc ('k') | remoting/protocol/webrtc_connection_to_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698