Skip to content

Commit b65aa01

Browse files
Erik SprångCommit Bot
authored andcommitted
Revert "Reland "Enable simulcast screenshare by default""
This reverts commit 89b2963. Reason for revert: Make experiment default off to not mess up data in re-launch. Original change's description: > Reland "Enable simulcast screenshare by default" > > This is a reland of d43c692 after fixes > to failing chromium tests. No change to the original CL were done. > Original CL reviewed on: https://webrtc-review.googlesource.com/87560 > > [email protected] > > Bug: chromium:690537 > Change-Id: I6b59ffc90d789aff21c7e52b118d3dfbe756c8a9 > Reviewed-on: https://webrtc-review.googlesource.com/89081 > Reviewed-by: Ilya Nikolaevskiy <[email protected]> > Commit-Queue: Ilya Nikolaevskiy <[email protected]> > Cr-Commit-Position: refs/heads/master@{#24013} [email protected],[email protected],[email protected] # Not skipping CQ checks because original CL landed > 1 day ago. Bug: chromium:690537, b:116052898 Change-Id: I429677de5547ce3a7badfb4414231ff9589e7414 Reviewed-on: https://webrtc-review.googlesource.com/101560 Reviewed-by: Ilya Nikolaevskiy <[email protected]> Commit-Queue: Erik Språng <[email protected]> Cr-Commit-Position: refs/heads/master@{#24798}
1 parent dd8de18 commit b65aa01

File tree

4 files changed

+12
-25
lines changed

4 files changed

+12
-25
lines changed

media/engine/simulcast.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ std::vector<webrtc::VideoStream> GetScreenshareLayers(
382382
}
383383

384384
bool ScreenshareSimulcastFieldTrialEnabled() {
385-
return !webrtc::field_trial::IsDisabled(kSimulcastScreenshareFieldTrialName);
385+
return webrtc::field_trial::IsEnabled(kSimulcastScreenshareFieldTrialName);
386386
}
387387

388388
} // namespace cricket

media/engine/simulcast_unittest.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,6 @@ TEST(SimulcastTest, GetConfigWithNormalizedResolution) {
165165
}
166166

167167
TEST(SimulcastTest, GetConfigForScreenshare) {
168-
test::ScopedFieldTrials field_trials("WebRTC-SimulcastScreenshare/Disabled/");
169-
170168
const size_t kMaxLayers = 3;
171169
std::vector<VideoStream> streams = cricket::GetSimulcastConfig(
172170
kMaxLayers, 1400, 800, kMaxBitrateBps, kBitratePriority, kQpMax, kMaxFps,
@@ -186,6 +184,8 @@ TEST(SimulcastTest, GetConfigForScreenshare) {
186184
}
187185

188186
TEST(SimulcastTest, GetConfigForScreenshareSimulcast) {
187+
test::ScopedFieldTrials field_trials("WebRTC-SimulcastScreenshare/Enabled/");
188+
189189
const size_t kMaxLayers = 3;
190190
std::vector<VideoStream> streams = cricket::GetSimulcastConfig(
191191
kMaxLayers, 1400, 800, kMaxBitrateBps, kBitratePriority, kQpMax, kMaxFps,

media/engine/webrtcvideoengine_unittest.cc

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6670,32 +6670,28 @@ TEST_F(WebRtcVideoChannelSimulcastTest, SetSendCodecsWithOddSizeInSimulcast) {
66706670
true);
66716671
}
66726672

6673-
// TODO(ilnik): Remove this test once Simulcast Screenshare is launched.
66746673
TEST_F(WebRtcVideoChannelSimulcastTest, SetSendCodecsForScreenshare) {
6675-
webrtc::test::ScopedFieldTrials override_field_trials_(
6676-
"WebRTC-SimulcastScreenshare/Disabled/");
6677-
66786674
VerifySimulcastSettings(cricket::VideoCodec("VP8"), 1280, 720, 3, 1, true,
66796675
false);
66806676
}
66816677

6682-
// TODO(ilnik): Remove this test once Simulcast Screenshare is launched.
66836678
TEST_F(WebRtcVideoChannelSimulcastTest,
66846679
SetSendCodecsForConferenceModeScreenshare) {
6685-
webrtc::test::ScopedFieldTrials override_field_trials_(
6686-
"WebRTC-SimulcastScreenshare/Disabled/");
6687-
66886680
VerifySimulcastSettings(cricket::VideoCodec("VP8"), 1280, 720, 3, 1, true,
66896681
true);
66906682
}
66916683

66926684
TEST_F(WebRtcVideoChannelSimulcastTest, SetSendCodecsForSimulcastScreenshare) {
6685+
webrtc::test::ScopedFieldTrials override_field_trials_(
6686+
"WebRTC-SimulcastScreenshare/Enabled/");
66936687
VerifySimulcastSettings(cricket::VideoCodec("VP8"), 1280, 720, 3, 2, true,
66946688
true);
66956689
}
66966690

66976691
TEST_F(WebRtcVideoChannelSimulcastTest,
66986692
NoSimulcastScreenshareWithoutConference) {
6693+
webrtc::test::ScopedFieldTrials override_field_trials_(
6694+
"WebRTC-SimulcastScreenshare/Enabled/");
66996695
VerifySimulcastSettings(cricket::VideoCodec("VP8"), 1280, 720, 3, 1, true,
67006696
false);
67016697
}

video/full_stack_tests.cc

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ namespace webrtc {
4646

4747
namespace {
4848
static const int kFullStackTestDurationSecs = 45;
49-
const char kNotScreenshareSimulcastExperiment[] =
50-
"WebRTC-SimulcastScreenshare/Disabled/";
49+
const char kScreenshareSimulcastExperiment[] =
50+
"WebRTC-SimulcastScreenshare/Enabled/";
5151
const char kPacerPushBackExperiment[] =
5252
"WebRTC-PacerPushbackExperiment/Enabled/";
5353

@@ -597,7 +597,6 @@ TEST(FullStackTest, ConferenceMotionHd2000kbps100msLimitedQueueVP9) {
597597
#endif
598598

599599
TEST(FullStackTest, ScreenshareSlidesVP8_2TL) {
600-
test::ScopedFieldTrials field_trial(kNotScreenshareSimulcastExperiment);
601600
auto fixture = CreateVideoQualityTestFixture();
602601
ParamsWithLogging screenshare;
603602
screenshare.call.send_side_bwe = true;
@@ -612,6 +611,7 @@ TEST(FullStackTest, ScreenshareSlidesVP8_2TL) {
612611

613612
TEST(FullStackTest, ScreenshareSlidesVP8_3TL_Simulcast) {
614613
auto fixture = CreateVideoQualityTestFixture();
614+
test::ScopedFieldTrials field_trial(kScreenshareSimulcastExperiment);
615615
ParamsWithLogging screenshare;
616616
screenshare.call.send_side_bwe = true;
617617
screenshare.screenshare[0] = {true, false, 10};
@@ -639,8 +639,6 @@ TEST(FullStackTest, ScreenshareSlidesVP8_3TL_Simulcast) {
639639
}
640640

641641
TEST(FullStackTest, ScreenshareSlidesVP8_2TL_Scroll) {
642-
test::ScopedFieldTrials field_trial(kNotScreenshareSimulcastExperiment);
643-
644642
auto fixture = CreateVideoQualityTestFixture();
645643
ParamsWithLogging config;
646644
config.call.send_side_bwe = true;
@@ -654,8 +652,6 @@ TEST(FullStackTest, ScreenshareSlidesVP8_2TL_Scroll) {
654652
}
655653

656654
TEST(FullStackTest, ScreenshareSlidesVP8_2TL_LossyNet) {
657-
test::ScopedFieldTrials field_trial(kNotScreenshareSimulcastExperiment);
658-
659655
auto fixture = CreateVideoQualityTestFixture();
660656
ParamsWithLogging screenshare;
661657
screenshare.call.send_side_bwe = true;
@@ -672,8 +668,6 @@ TEST(FullStackTest, ScreenshareSlidesVP8_2TL_LossyNet) {
672668
}
673669

674670
TEST(FullStackTest, ScreenshareSlidesVP8_2TL_VeryLossyNet) {
675-
test::ScopedFieldTrials field_trial(kNotScreenshareSimulcastExperiment);
676-
677671
auto fixture = CreateVideoQualityTestFixture();
678672
ParamsWithLogging screenshare;
679673
screenshare.call.send_side_bwe = true;
@@ -690,8 +684,6 @@ TEST(FullStackTest, ScreenshareSlidesVP8_2TL_VeryLossyNet) {
690684
}
691685

692686
TEST(FullStackTest, ScreenshareSlidesVP8_2TL_LossyNetRestrictedQueue) {
693-
test::ScopedFieldTrials field_trial(kNotScreenshareSimulcastExperiment);
694-
695687
auto fixture = CreateVideoQualityTestFixture();
696688
ParamsWithLogging screenshare;
697689
screenshare.call.send_side_bwe = true;
@@ -709,8 +701,6 @@ TEST(FullStackTest, ScreenshareSlidesVP8_2TL_LossyNetRestrictedQueue) {
709701
}
710702

711703
TEST(FullStackTest, ScreenshareSlidesVP8_2TL_ModeratelyRestricted) {
712-
test::ScopedFieldTrials field_trial(kNotScreenshareSimulcastExperiment);
713-
714704
auto fixture = CreateVideoQualityTestFixture();
715705
ParamsWithLogging screenshare;
716706
screenshare.call.send_side_bwe = true;
@@ -1070,7 +1060,8 @@ class DualStreamsTest : public ::testing::TestWithParam<int> {};
10701060
TEST_P(DualStreamsTest,
10711061
ModeratelyRestricted_SlidesVp8_3TL_Simulcast_Video_Simulcast_High) {
10721062
test::ScopedFieldTrials field_trial(
1073-
AppendFieldTrials(std::string(kPacerPushBackExperiment)));
1063+
AppendFieldTrials(std::string(kPacerPushBackExperiment) +
1064+
std::string(kScreenshareSimulcastExperiment)));
10741065
const int first_stream = GetParam();
10751066
ParamsWithLogging dual_streams;
10761067

0 commit comments

Comments
 (0)