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

Unified Diff: webrtc/video/screenshare_loopback.cc

Issue 3003193002: Add a new frame generator that cycles through randomly generated slides. (Closed)
Patch Set: Patchset 3C. Created 3 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/video/screenshare_loopback.cc
diff --git a/webrtc/video/screenshare_loopback.cc b/webrtc/video/screenshare_loopback.cc
index d9de841084e3685c62ba01988a43e28c635275c9..17fd8deec9c960e7632db1735db0ce27b4c0ae57 100644
--- a/webrtc/video/screenshare_loopback.cc
+++ b/webrtc/video/screenshare_loopback.cc
@@ -218,6 +218,13 @@ int MinTransmitBitrateKbps() {
return FLAG_min_transmit_bitrate;
}
+DEFINE_bool(generate_slides,
+ false,
+ "Whether to use randomly generated slides or read them from files.");
+bool GenerateSlides() {
+ return static_cast<int>(FLAG_generate_slides);
+}
+
DEFINE_int(slide_change_interval,
10,
"Interval (in seconds) between simulated slide changes.");
@@ -278,7 +285,8 @@ void Loopback() {
false, // ULPFEC disabled.
false, // FlexFEC disabled.
""};
- params.screenshare = {true, flags::SlideChangeInterval(),
+ params.screenshare = {true, flags::GenerateSlides(),
+ flags::SlideChangeInterval(),
flags::ScrollDuration(), flags::Slides()};
params.analyzer = {"screenshare", 0.0, 0.0, flags::DurationSecs(),
flags::OutputFilename(), flags::GraphTitle()};

Powered by Google App Engine
This is Rietveld 408576698