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

Unified Diff: remoting/protocol/video_frame_pump.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/fake_connection_to_client.cc ('k') | remoting/protocol/video_frame_pump.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/video_frame_pump.h
diff --git a/remoting/protocol/video_frame_pump.h b/remoting/protocol/video_frame_pump.h
index 3b774ce07016bf3f1cc7dca297003032ba4c1503..8a1b32deedc68a0ddf4c42a107bff5953cf29d27 100644
--- a/remoting/protocol/video_frame_pump.h
+++ b/remoting/protocol/video_frame_pump.h
@@ -87,7 +87,7 @@ class VideoFramePump : 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;
protocol::VideoFeedbackStub* video_feedback_stub() {
return &capture_scheduler_;
@@ -165,7 +165,7 @@ class VideoFramePump : public VideoStream,
// Interface through which video frames are passed to the client.
protocol::VideoStub* video_stub_;
- SizeCallback size_callback_;
+ Observer* observer_ = nullptr;
webrtc::DesktopSize frame_size_;
webrtc::DesktopVector frame_dpi_;
« no previous file with comments | « remoting/protocol/fake_connection_to_client.cc ('k') | remoting/protocol/video_frame_pump.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698