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

Unified Diff: remoting/protocol/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/video_stream.h
diff --git a/remoting/protocol/video_stream.h b/remoting/protocol/video_stream.h
index 06045b2c31e087cabc6438fb5b4c4ebf21e7b396..82bd6b4c5928f02a1df72e9946ed322b234b7e64 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 SetEventTimestampSource(
+ scoped_refptr<InputEventTimestampSource> event_timestamp_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;

Powered by Google App Engine
This is Rietveld 408576698