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

Side by Side Diff: webrtc/media/base/capturemanager.h

Issue 1733673002: Removed unused cricket::VideoCapturer methods (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixed thread checker for android. SetCaptureFormat is called on the thread where the capturer is cr… Created 4 years, 9 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/api/videosource.cc ('k') | webrtc/media/base/capturemanager.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 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 }; 46 };
47 47
48 CaptureManager(); 48 CaptureManager();
49 virtual ~CaptureManager(); 49 virtual ~CaptureManager();
50 50
51 virtual bool StartVideoCapture(VideoCapturer* video_capturer, 51 virtual bool StartVideoCapture(VideoCapturer* video_capturer,
52 const VideoFormat& desired_format); 52 const VideoFormat& desired_format);
53 virtual bool StopVideoCapture(VideoCapturer* video_capturer, 53 virtual bool StopVideoCapture(VideoCapturer* video_capturer,
54 const VideoFormat& format); 54 const VideoFormat& format);
55 55
56 // Possibly restarts the capturer. If |options| is set to kRequestRestart,
57 // the CaptureManager chooses whether this request can be handled with the
58 // current state or if a restart is actually needed. If |options| is set to
59 // kForceRestart, the capturer is restarted.
60 virtual bool RestartVideoCapture(VideoCapturer* video_capturer,
61 const VideoFormat& previous_format,
62 const VideoFormat& desired_format,
63 RestartOptions options);
64
65 virtual void AddVideoSink(VideoCapturer* video_capturer, 56 virtual void AddVideoSink(VideoCapturer* video_capturer,
66 rtc::VideoSinkInterface<VideoFrame>* sink); 57 rtc::VideoSinkInterface<VideoFrame>* sink);
67 virtual void RemoveVideoSink(VideoCapturer* video_capturer, 58 virtual void RemoveVideoSink(VideoCapturer* video_capturer,
68 rtc::VideoSinkInterface<VideoFrame>* sink); 59 rtc::VideoSinkInterface<VideoFrame>* sink);
69 60
70 sigslot::repeater2<VideoCapturer*, CaptureState> SignalCapturerStateChange; 61 sigslot::repeater2<VideoCapturer*, CaptureState> SignalCapturerStateChange;
71 62
72 private: 63 private:
73 typedef std::map<VideoCapturer*, VideoCapturerState*> CaptureStates; 64 typedef std::map<VideoCapturer*, VideoCapturerState*> CaptureStates;
74 65
75 bool IsCapturerRegistered(VideoCapturer* video_capturer) const; 66 bool IsCapturerRegistered(VideoCapturer* video_capturer) const;
76 bool RegisterVideoCapturer(VideoCapturer* video_capturer); 67 bool RegisterVideoCapturer(VideoCapturer* video_capturer);
77 void UnregisterVideoCapturer(VideoCapturerState* capture_state); 68 void UnregisterVideoCapturer(VideoCapturerState* capture_state);
78 69
79 bool StartWithBestCaptureFormat(VideoCapturerState* capture_info, 70 bool StartWithBestCaptureFormat(VideoCapturerState* capture_info,
80 VideoCapturer* video_capturer); 71 VideoCapturer* video_capturer);
81 72
82 VideoCapturerState* GetCaptureState(VideoCapturer* video_capturer) const; 73 VideoCapturerState* GetCaptureState(VideoCapturer* video_capturer) const;
83 74
84 rtc::ThreadChecker thread_checker_; 75 rtc::ThreadChecker thread_checker_;
85 CaptureStates capture_states_; 76 CaptureStates capture_states_;
86 }; 77 };
87 78
88 } // namespace cricket 79 } // namespace cricket
89 80
90 #endif // WEBRTC_MEDIA_BASE_CAPTUREMANAGER_H_ 81 #endif // WEBRTC_MEDIA_BASE_CAPTUREMANAGER_H_
OLDNEW
« no previous file with comments | « webrtc/api/videosource.cc ('k') | webrtc/media/base/capturemanager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698