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

Unified Diff: remoting/protocol/webrtc_video_stream.h

Issue 1846893002: Interface with webrtc through encoded frames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed sergey comment Created 4 years, 8 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/webrtc_video_renderer_adapter.cc ('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 8fba34bf4a29c77ffa7949c5e7d2e9d522340ae3..36eed5a0c10edb49bc68f9cf58d97948102617ed 100644
--- a/remoting/protocol/webrtc_video_stream.h
+++ b/remoting/protocol/webrtc_video_stream.h
@@ -12,7 +12,9 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
+#include "remoting/codec/video_encoder.h"
#include "remoting/protocol/video_stream.h"
+#include "remoting/protocol/webrtc_frame_scheduler.h"
namespace webrtc {
class DesktopSize;
@@ -33,10 +35,11 @@ class WebrtcVideoStream : public VideoStream {
WebrtcVideoStream();
~WebrtcVideoStream() override;
- bool Start(std::unique_ptr<webrtc::DesktopCapturer> desktop_capturer,
- scoped_refptr<webrtc::PeerConnectionInterface> connection,
- scoped_refptr<webrtc::PeerConnectionFactoryInterface>
- peer_connection_factory);
+ bool Start(
+ std::unique_ptr<webrtc::DesktopCapturer> desktop_capturer,
+ WebrtcTransport* webrtc_transport,
+ scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner,
+ std::unique_ptr<VideoEncoder> video_encoder);
// VideoStream interface.
void Pause(bool pause) override;
@@ -49,8 +52,8 @@ class WebrtcVideoStream : public VideoStream {
scoped_refptr<webrtc::PeerConnectionInterface> connection_;
scoped_refptr<webrtc::MediaStreamInterface> stream_;
- // Owned by the |stream_|.
- base::WeakPtr<WebrtcVideoCapturerAdapter> capturer_adapter_;
+ // Owned by the dummy video capturer.
+ WebRtcFrameScheduler* webrtc_frame_scheduler_;
DISALLOW_COPY_AND_ASSIGN(WebrtcVideoStream);
};
« no previous file with comments | « remoting/protocol/webrtc_video_renderer_adapter.cc ('k') | remoting/protocol/webrtc_video_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698