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

Unified Diff: remoting/protocol/webrtc_video_capturer_adapter.h

Issue 1571543002: Implement missing features in WebrtcVideoStream. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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_capturer_adapter.h
diff --git a/remoting/protocol/webrtc_video_capturer_adapter.h b/remoting/protocol/webrtc_video_capturer_adapter.h
index 3c5375b439f18b93917193eff22f8a8c1799e4b0..2443475d727f5fb107077433eb85b5e23b826053 100644
--- a/remoting/protocol/webrtc_video_capturer_adapter.h
+++ b/remoting/protocol/webrtc_video_capturer_adapter.h
@@ -42,10 +42,14 @@ namespace protocol {
class WebrtcVideoCapturerAdapter : public cricket::VideoCapturer,
public webrtc::DesktopCapturer::Callback {
public:
+ typedef base::Callback<void(const webrtc::DesktopSize& size)> SizeCallback;
+
explicit WebrtcVideoCapturerAdapter(
scoped_ptr<webrtc::DesktopCapturer> capturer);
~WebrtcVideoCapturerAdapter() override;
+ void SetSizeCallback(const SizeCallback& size_callback);
+
// cricket::VideoCapturer implementation.
bool GetBestCaptureFormat(const cricket::VideoFormat& desired,
cricket::VideoFormat* best_format) override;
@@ -70,6 +74,8 @@ class WebrtcVideoCapturerAdapter : public cricket::VideoCapturer,
scoped_ptr<webrtc::DesktopCapturer> desktop_capturer_;
+ SizeCallback size_callback_;
+
// Timer to call CaptureNextFrame().
scoped_ptr<base::RepeatingTimer> capture_timer_;

Powered by Google App Engine
This is Rietveld 408576698