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

Side by Side Diff: webrtc/api/videocapturertracksource.h

Issue 1766653002: Replace SetCapturer and SetCaptureDevice by SetSource. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased, no longer any proxy object changes. 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 29 matching lines...) Expand all
40 rtc::Thread* worker_thread, 40 rtc::Thread* worker_thread,
41 cricket::VideoCapturer* capturer, 41 cricket::VideoCapturer* capturer,
42 const webrtc::MediaConstraintsInterface* constraints, 42 const webrtc::MediaConstraintsInterface* constraints,
43 bool remote); 43 bool remote);
44 44
45 static rtc::scoped_refptr<VideoTrackSourceInterface> Create( 45 static rtc::scoped_refptr<VideoTrackSourceInterface> Create(
46 rtc::Thread* worker_thread, 46 rtc::Thread* worker_thread,
47 cricket::VideoCapturer* capturer, 47 cricket::VideoCapturer* capturer,
48 bool remote); 48 bool remote);
49 49
50 cricket::VideoCapturer* GetVideoCapturer() override {
51 return video_capturer_.get();
52 }
53
54 bool is_screencast() const override { 50 bool is_screencast() const override {
55 return video_capturer_->IsScreencast(); 51 return video_capturer_->IsScreencast();
56 } 52 }
57 rtc::Optional<bool> needs_denoising() const override { 53 rtc::Optional<bool> needs_denoising() const override {
58 return needs_denoising_; 54 return needs_denoising_;
59 } 55 }
60 56
61 bool GetStats(Stats* stats) override; 57 bool GetStats(Stats* stats) override;
62 58
63 void Stop() override; 59 void Stop() override;
(...skipping 15 matching lines...) Expand all
79 rtc::AsyncInvoker invoker_; 75 rtc::AsyncInvoker invoker_;
80 rtc::scoped_ptr<cricket::VideoCapturer> video_capturer_; 76 rtc::scoped_ptr<cricket::VideoCapturer> video_capturer_;
81 bool started_; 77 bool started_;
82 cricket::VideoFormat format_; 78 cricket::VideoFormat format_;
83 rtc::Optional<bool> needs_denoising_; 79 rtc::Optional<bool> needs_denoising_;
84 }; 80 };
85 81
86 } // namespace webrtc 82 } // namespace webrtc
87 83
88 #endif // WEBRTC_API_VIDEOCAPTURERTRACKSOURCE_H_ 84 #endif // WEBRTC_API_VIDEOCAPTURERTRACKSOURCE_H_
OLDNEW
« no previous file with comments | « webrtc/api/rtpsenderreceiver_unittest.cc ('k') | webrtc/api/videocapturertracksource_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698