OLD | NEW |
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 #include "ppapi/features/features.h" | 7 #include "ppapi/features/features.h" |
8 | 8 |
9 namespace switches { | 9 namespace switches { |
10 | 10 |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 // when in background. | 148 // when in background. |
149 const base::Feature kResumeBackgroundVideo { | 149 const base::Feature kResumeBackgroundVideo { |
150 "resume-background-video", | 150 "resume-background-video", |
151 #if defined(OS_ANDROID) | 151 #if defined(OS_ANDROID) |
152 base::FEATURE_ENABLED_BY_DEFAULT | 152 base::FEATURE_ENABLED_BY_DEFAULT |
153 #else | 153 #else |
154 base::FEATURE_DISABLED_BY_DEFAULT | 154 base::FEATURE_DISABLED_BY_DEFAULT |
155 #endif | 155 #endif |
156 }; | 156 }; |
157 | 157 |
| 158 // Let video track be unselected when video is playing in the background. |
| 159 const base::Feature kBackgroundVideoTrackOptimization{ |
| 160 "BackgroundVideoTrackOptimization", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 161 |
158 // Use shared block-based buffering for media. | 162 // Use shared block-based buffering for media. |
159 const base::Feature kUseNewMediaCache{"use-new-media-cache", | 163 const base::Feature kUseNewMediaCache{"use-new-media-cache", |
160 base::FEATURE_ENABLED_BY_DEFAULT}; | 164 base::FEATURE_ENABLED_BY_DEFAULT}; |
161 | 165 |
162 // Correct video colors based on output display? | 166 // Correct video colors based on output display? |
163 const base::Feature kVideoColorManagement{"video-color-management", | 167 const base::Feature kVideoColorManagement{"video-color-management", |
164 base::FEATURE_DISABLED_BY_DEFAULT}; | 168 base::FEATURE_DISABLED_BY_DEFAULT}; |
165 | 169 |
166 // Enables support for External Clear Key (ECK) key system for testing on | 170 // Enables support for External Clear Key (ECK) key system for testing on |
167 // supported platforms. On platforms that do not support ECK, this feature has | 171 // supported platforms. On platforms that do not support ECK, this feature has |
168 // no effect. | 172 // no effect. |
169 const base::Feature kExternalClearKeyForTesting{ | 173 const base::Feature kExternalClearKeyForTesting{ |
170 "external-clear-key-for-testing", base::FEATURE_DISABLED_BY_DEFAULT}; | 174 "external-clear-key-for-testing", base::FEATURE_DISABLED_BY_DEFAULT}; |
171 | 175 |
172 #if defined(OS_ANDROID) | 176 #if defined(OS_ANDROID) |
173 // Replaces WPMA by the MediaPlayerRenderer for HLS and fallback playback. | 177 // Replaces WPMA by the MediaPlayerRenderer for HLS and fallback playback. |
174 const base::Feature kAndroidMediaPlayerRenderer{ | 178 const base::Feature kAndroidMediaPlayerRenderer{ |
175 "android-media-player-renderer", base::FEATURE_ENABLED_BY_DEFAULT}; | 179 "android-media-player-renderer", base::FEATURE_ENABLED_BY_DEFAULT}; |
176 #endif | 180 #endif |
177 | 181 |
178 } // namespace media | 182 } // namespace media |
OLD | NEW |