blob: 1d040a91b0e44d302e437fc96f3250d18d33cb83 [file] [log] [blame]
Ilya Nikolaevskiy8cf45e92018-01-15 10:16:54 +01001/*
2 * Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11#include "system_wrappers/include/runtime_enabled_features.h"
12
13#include "rtc_base/flags.h"
14
15namespace flags {
Yves Gerey665174f2018-06-19 15:03:05 +020016DEFINE_bool(enable_dual_stream_mode, false, "Enables dual video stream mode.");
Ilya Nikolaevskiy8cf45e92018-01-15 10:16:54 +010017}
18
19namespace webrtc {
20namespace runtime_enabled_features {
21
22bool IsFeatureEnabled(std::string feature_name) {
Ilya Nikolaevskiy2ffe3e82018-01-17 19:57:24 +000023 if (feature_name == kDualStreamModeFeatureName)
Ilya Nikolaevskiy8cf45e92018-01-15 10:16:54 +010024 return flags::FLAG_enable_dual_stream_mode;
25 return false;
26}
27
28} // namespace runtime_enabled_features
29} // namespace webrtc