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

Unified Diff: webrtc/api/androidvideocapturer.h

Issue 2276593003: Android Screen Capturer. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix comments. Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/api/androidvideocapturer.h
diff --git a/webrtc/api/androidvideocapturer.h b/webrtc/api/androidvideocapturer.h
index 24294efc13fac415dfb71120a650a1336865e8d3..cf67433b3570884b20e8fb52b32c4703a1e6df2d 100644
--- a/webrtc/api/androidvideocapturer.h
+++ b/webrtc/api/androidvideocapturer.h
@@ -42,7 +42,8 @@ class AndroidVideoCapturerDelegate : public rtc::RefCountInterface {
class AndroidVideoCapturer : public cricket::VideoCapturer {
public:
explicit AndroidVideoCapturer(
- const rtc::scoped_refptr<AndroidVideoCapturerDelegate>& delegate);
+ const rtc::scoped_refptr<AndroidVideoCapturerDelegate>& delegate,
+ bool is_screencast = false);
virtual ~AndroidVideoCapturer();
// Called from JNI when the capturer has been started.
@@ -70,11 +71,12 @@ class AndroidVideoCapturer : public cricket::VideoCapturer {
const cricket::VideoFormat& capture_format) override;
void Stop() override;
bool IsRunning() override;
- bool IsScreencast() const override { return false; }
+ bool IsScreencast() const override { return is_screencast_; }
bool GetPreferredFourccs(std::vector<uint32_t>* fourccs) override;
bool running_;
rtc::scoped_refptr<AndroidVideoCapturerDelegate> delegate_;
+ bool is_screencast_;
magjed_webrtc 2016/08/24 12:19:22 Make this variable const.
arsany 2016/08/26 02:07:36 Done.
rtc::ThreadChecker thread_checker_;
};

Powered by Google App Engine
This is Rietveld 408576698