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

Unified Diff: remoting/protocol/webrtc_video_stream.h

Issue 2083843002: Replace VideoStream::SizeCallback with VideoStream::Observer interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@merge-sched-stream
Patch Set: Created 4 years, 6 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_stream.h ('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 5db4750cbfb14a2c063f06bfcfd7c9e5e408ded6..1ce0b47b9a69b75019964d2a16c071a23be8d6ef 100644
--- a/remoting/protocol/webrtc_video_stream.h
+++ b/remoting/protocol/webrtc_video_stream.h
@@ -49,7 +49,7 @@ class WebrtcVideoStream : public VideoStream,
void OnInputEventReceived(int64_t event_timestamp) override;
void SetLosslessEncode(bool want_lossless) override;
void SetLosslessColor(bool want_lossless) override;
- void SetSizeCallback(const SizeCallback& size_callback) override;
+ void SetObserver(Observer* observer) override;
private:
// webrtc::DesktopCapturer::Callback interface.
@@ -84,7 +84,7 @@ class WebrtcVideoStream : public VideoStream,
webrtc::DesktopSize frame_size_;
webrtc::DesktopVector frame_dpi_;
- SizeCallback size_callback_;
+ Observer* observer_ = nullptr;
// Main task runner.
scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
« no previous file with comments | « remoting/protocol/video_stream.h ('k') | remoting/protocol/webrtc_video_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698