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

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

Issue 2692923002: Changing some PeerConnection-related comments. (Closed)
Patch Set: Created 3 years, 10 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 | « webrtc/pc/peerconnectionfactory.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 15 matching lines...) Expand all
26 // The state is set depending on the result of starting the capturer. 26 // The state is set depending on the result of starting the capturer.
27 // If the constraint can't be met or the capturer fails to start, the state 27 // If the constraint can't be met or the capturer fails to start, the state
28 // transition to kEnded, otherwise it transitions to kLive. 28 // transition to kEnded, otherwise it transitions to kLive.
29 namespace webrtc { 29 namespace webrtc {
30 30
31 class MediaConstraintsInterface; 31 class MediaConstraintsInterface;
32 32
33 class VideoCapturerTrackSource : public VideoTrackSource, 33 class VideoCapturerTrackSource : public VideoTrackSource,
34 public sigslot::has_slots<> { 34 public sigslot::has_slots<> {
35 public: 35 public:
36 // Creates an instance of VideoCapturerTrackSource. 36 // Creates an instance of VideoCapturerTrackSource from |capturer|.
37 // VideoCapturerTrackSource takes ownership of |capturer|.
38 // |constraints| can be NULL and in that case the camera is opened using a 37 // |constraints| can be NULL and in that case the camera is opened using a
39 // default resolution. 38 // default resolution.
40 static rtc::scoped_refptr<VideoTrackSourceInterface> Create( 39 static rtc::scoped_refptr<VideoTrackSourceInterface> Create(
41 rtc::Thread* worker_thread, 40 rtc::Thread* worker_thread,
42 std::unique_ptr<cricket::VideoCapturer> capturer, 41 std::unique_ptr<cricket::VideoCapturer> capturer,
43 const webrtc::MediaConstraintsInterface* constraints, 42 const webrtc::MediaConstraintsInterface* constraints,
44 bool remote); 43 bool remote);
45 44
46 static rtc::scoped_refptr<VideoTrackSourceInterface> Create( 45 static rtc::scoped_refptr<VideoTrackSourceInterface> Create(
47 rtc::Thread* worker_thread, 46 rtc::Thread* worker_thread,
(...skipping 27 matching lines...) Expand all
75 rtc::AsyncInvoker invoker_; 74 rtc::AsyncInvoker invoker_;
76 std::unique_ptr<cricket::VideoCapturer> video_capturer_; 75 std::unique_ptr<cricket::VideoCapturer> video_capturer_;
77 bool started_; 76 bool started_;
78 cricket::VideoFormat format_; 77 cricket::VideoFormat format_;
79 rtc::Optional<bool> needs_denoising_; 78 rtc::Optional<bool> needs_denoising_;
80 }; 79 };
81 80
82 } // namespace webrtc 81 } // namespace webrtc
83 82
84 #endif // WEBRTC_PC_VIDEOCAPTURERTRACKSOURCE_H_ 83 #endif // WEBRTC_PC_VIDEOCAPTURERTRACKSOURCE_H_
OLDNEW
« no previous file with comments | « webrtc/pc/peerconnectionfactory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698