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

Unified Diff: remoting/protocol/video_stream.h

Issue 1472873005: Add VideoStream interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_video_pump
Patch Set: Created 5 years, 1 month 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
new file mode 100644
index 0000000000000000000000000000000000000000..b251eae0699084cffb39d526ff2962c337f325d0
--- /dev/null
+++ b/remoting/protocol/video_stream.h
@@ -0,0 +1,44 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef REMOTING_PROTOCOL_VIDEO_STREAM_H_
+#define REMOTING_PROTOCOL_VIDEO_STREAM_H_
+
+#include "base/callback_forward.h"
+
+namespace webrtc {
+class DesktopSize;
+} // namespace webrtc
+
+namespace remoting {
+namespace protocol {
+
+class VideoStream {
+ public:
+ // Callback used to notify about screen size changes.
+ typedef base::Callback<void(const webrtc::DesktopSize& size)> SizeCallback;
+
+ VideoStream() {}
+ virtual ~VideoStream() {}
+
+ // 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 input event is received.
Jamie 2015/11/25 01:32:46 s/input/an input/
Sergey Ulanov 2015/11/27 22:11:34 Done.
+ 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;
+ virtual void SetLosslessColor(bool want_lossless) = 0;
+
+ // Sets SizeCallback to be called when screen size is changed.
+ virtual void SetSizeCallback(const SizeCallback& size_callback) = 0;
+};
+
+} // namespace protocol
+} // namespace remoting
+
+#endif // REMOTING_PROTOCOL_VIDEO_STREAM_H_

Powered by Google App Engine
This is Rietveld 408576698