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

Side by Side Diff: media/base/media_switches.cc

Issue 2487373003: Disable background video track behind a feature flag (Closed)
Patch Set: Added the feature flag to histograms.xml Created 4 years, 1 month 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "build/build_config.h" 5 #include "build/build_config.h"
6 #include "media/base/media_switches.h" 6 #include "media/base/media_switches.h"
7 7
8 namespace switches { 8 namespace switches {
9 9
10 // Allow users to specify a custom buffer size for debugging purpose. 10 // Allow users to specify a custom buffer size for debugging purpose.
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 // when in background. 147 // when in background.
148 const base::Feature kResumeBackgroundVideo { 148 const base::Feature kResumeBackgroundVideo {
149 "resume-background-video", 149 "resume-background-video",
150 #if defined(OS_ANDROID) 150 #if defined(OS_ANDROID)
151 base::FEATURE_ENABLED_BY_DEFAULT 151 base::FEATURE_ENABLED_BY_DEFAULT
152 #else 152 #else
153 base::FEATURE_DISABLED_BY_DEFAULT 153 base::FEATURE_DISABLED_BY_DEFAULT
154 #endif 154 #endif
155 }; 155 };
156 156
157 // Let video track be unselected when video is playing in the background.
158 const base::Feature kBackgroundVideoTrackOptimization{
159 "BackgroundVideoTrackOptimization", base::FEATURE_DISABLED_BY_DEFAULT};
160
157 // Use shared block-based buffering for media. 161 // Use shared block-based buffering for media.
158 const base::Feature kUseNewMediaCache{"use-new-media-cache", 162 const base::Feature kUseNewMediaCache{"use-new-media-cache",
159 base::FEATURE_ENABLED_BY_DEFAULT}; 163 base::FEATURE_ENABLED_BY_DEFAULT};
160 164
161 // Correct video colors based on output display? 165 // Correct video colors based on output display?
162 const base::Feature kVideoColorManagement{"video-color-management", 166 const base::Feature kVideoColorManagement{"video-color-management",
163 base::FEATURE_DISABLED_BY_DEFAULT}; 167 base::FEATURE_DISABLED_BY_DEFAULT};
164 168
165 // Enables support for External Clear Key (ECK) key system for testing on 169 // Enables support for External Clear Key (ECK) key system for testing on
166 // supported platforms. On platforms that do not support ECK, this feature has 170 // supported platforms. On platforms that do not support ECK, this feature has
167 // no effect. 171 // no effect.
168 const base::Feature kExternalClearKeyForTesting{ 172 const base::Feature kExternalClearKeyForTesting{
169 "external-clear-key-for-testing", base::FEATURE_DISABLED_BY_DEFAULT}; 173 "external-clear-key-for-testing", base::FEATURE_DISABLED_BY_DEFAULT};
170 174
171 #if defined(OS_ANDROID) 175 #if defined(OS_ANDROID)
172 // Replaces WPMA by the MediaPlayerRenderer for HLS and fallback playback. 176 // Replaces WPMA by the MediaPlayerRenderer for HLS and fallback playback.
173 const base::Feature kAndroidMediaPlayerRenderer{ 177 const base::Feature kAndroidMediaPlayerRenderer{
174 "android-media-player-renderer", base::FEATURE_DISABLED_BY_DEFAULT}; 178 "android-media-player-renderer", base::FEATURE_DISABLED_BY_DEFAULT};
175 #endif 179 #endif
176 180
177 } // namespace media 181 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698