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

Side by Side Diff: remoting/protocol/webrtc_dummy_video_capturer.h

Issue 2079253003: Move frame scheduling logic from WebrtcFrameScheduler to WebrtcVideoStream. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 unified diff | Download patch
« no previous file with comments | « no previous file | remoting/protocol/webrtc_dummy_video_capturer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_PROTOCOL_WEBRTC_DUMMY_VIDEO_CAPTURER_H_ 5 #ifndef REMOTING_PROTOCOL_WEBRTC_DUMMY_VIDEO_CAPTURER_H_
6 #define REMOTING_PROTOCOL_WEBRTC_DUMMY_VIDEO_CAPTURER_H_ 6 #define REMOTING_PROTOCOL_WEBRTC_DUMMY_VIDEO_CAPTURER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "remoting/protocol/webrtc_frame_scheduler.h"
13 #include "third_party/webrtc/media/base/videocapturer.h" 12 #include "third_party/webrtc/media/base/videocapturer.h"
14 13
15 namespace remoting { 14 namespace remoting {
16 namespace protocol { 15 namespace protocol {
17 16
18 // A dummy video capturer needed to create peer connection. We do not supply 17 // A dummy video capturer needed to create peer connection. We do not supply
19 // captured frames throught this interface, but instead provide encoded 18 // captured frames through this interface, but instead provide encoded
20 // frames to Webrtc. We expect this requirement to go away once we have 19 // frames to Webrtc. We expect this requirement to go away once we have
21 // proper support for providing encoded frames to Webrtc through 20 // proper support for providing encoded frames to Webrtc through
22 // VideoSourceInterface 21 // VideoSourceInterface
23 class WebrtcDummyVideoCapturer : public cricket::VideoCapturer { 22 class WebrtcDummyVideoCapturer : public cricket::VideoCapturer {
24 public: 23 public:
25 explicit WebrtcDummyVideoCapturer( 24 explicit WebrtcDummyVideoCapturer();
26 std::unique_ptr<WebrtcFrameScheduler> frame_scheduler);
27 ~WebrtcDummyVideoCapturer() override; 25 ~WebrtcDummyVideoCapturer() override;
28 26
27 // cricket::VideoCapturer interface.
29 cricket::CaptureState Start( 28 cricket::CaptureState Start(
30 const cricket::VideoFormat& capture_format) override; 29 const cricket::VideoFormat& capture_format) override;
31 void Stop() override; 30 void Stop() override;
32 bool IsRunning() override; 31 bool IsRunning() override;
33 bool IsScreencast() const override; 32 bool IsScreencast() const override;
34 bool GetPreferredFourccs(std::vector<uint32_t>* fourccs) override; 33 bool GetPreferredFourccs(std::vector<uint32_t>* fourccs) override;
35 34
36 private: 35 private:
37 std::unique_ptr<WebrtcFrameScheduler> frame_scheduler_;
38
39 DISALLOW_COPY_AND_ASSIGN(WebrtcDummyVideoCapturer); 36 DISALLOW_COPY_AND_ASSIGN(WebrtcDummyVideoCapturer);
40 }; 37 };
41 38
42 } // namespace protocol 39 } // namespace protocol
43 } // namespace remoting 40 } // namespace remoting
44 41
45 #endif // REMOTING_PROTOCOL_WEBRTC_DUMMY_VIDEO_CAPTURER_H_ 42 #endif // REMOTING_PROTOCOL_WEBRTC_DUMMY_VIDEO_CAPTURER_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/protocol/webrtc_dummy_video_capturer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698