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

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

Issue 1827023002: Get VideoCapturer stats via VideoTrackSourceInterface in StatsCollector, (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. 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
« no previous file with comments | « webrtc/api/videosourceproxy.h ('k') | webrtc/media/base/mediachannel.h » ('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 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2016 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 22 matching lines...) Expand all
33 SourceState state() const override { return state_; } 33 SourceState state() const override { return state_; }
34 bool remote() const override { return remote_; } 34 bool remote() const override { return remote_; }
35 35
36 void Stop() override{}; 36 void Stop() override{};
37 void Restart() override{}; 37 void Restart() override{};
38 38
39 virtual bool is_screencast() const { return false; } 39 virtual bool is_screencast() const { return false; }
40 virtual rtc::Optional<bool> needs_denoising() const { 40 virtual rtc::Optional<bool> needs_denoising() const {
41 return rtc::Optional<bool>(); } 41 return rtc::Optional<bool>(); }
42 42
43 bool GetStats(Stats* stats) override { return false; }
44
43 void AddOrUpdateSink(rtc::VideoSinkInterface<cricket::VideoFrame>* sink, 45 void AddOrUpdateSink(rtc::VideoSinkInterface<cricket::VideoFrame>* sink,
44 const rtc::VideoSinkWants& wants) override; 46 const rtc::VideoSinkWants& wants) override;
45 void RemoveSink(rtc::VideoSinkInterface<cricket::VideoFrame>* sink) override; 47 void RemoveSink(rtc::VideoSinkInterface<cricket::VideoFrame>* sink) override;
46 48
47 cricket::VideoCapturer* GetVideoCapturer() override { return nullptr; } 49 cricket::VideoCapturer* GetVideoCapturer() override { return nullptr; }
48 50
49 protected: 51 protected:
50 rtc::Thread* worker_thread() { return worker_thread_; } 52 rtc::Thread* worker_thread() { return worker_thread_; }
51 53
52 private: 54 private:
53 rtc::VideoSourceInterface<cricket::VideoFrame>* source_; 55 rtc::VideoSourceInterface<cricket::VideoFrame>* source_;
54 rtc::Thread* worker_thread_; 56 rtc::Thread* worker_thread_;
55 cricket::VideoOptions options_; 57 cricket::VideoOptions options_;
56 SourceState state_; 58 SourceState state_;
57 const bool remote_; 59 const bool remote_;
58 }; 60 };
59 61
60 } // namespace webrtc 62 } // namespace webrtc
61 63
62 #endif // WEBRTC_API_VIDEOTRACKSOURCE_H_ 64 #endif // WEBRTC_API_VIDEOTRACKSOURCE_H_
OLDNEW
« no previous file with comments | « webrtc/api/videosourceproxy.h ('k') | webrtc/media/base/mediachannel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698