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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 base::FEATURE_ENABLED_BY_DEFAULT | 166 base::FEATURE_ENABLED_BY_DEFAULT |
167 #else | 167 #else |
168 base::FEATURE_DISABLED_BY_DEFAULT | 168 base::FEATURE_DISABLED_BY_DEFAULT |
169 #endif | 169 #endif |
170 }; | 170 }; |
171 | 171 |
172 // Let video track be unselected when video is playing in the background. | 172 // Let video track be unselected when video is playing in the background. |
173 const base::Feature kBackgroundVideoTrackOptimization{ | 173 const base::Feature kBackgroundVideoTrackOptimization{ |
174 "BackgroundVideoTrackOptimization", base::FEATURE_DISABLED_BY_DEFAULT}; | 174 "BackgroundVideoTrackOptimization", base::FEATURE_DISABLED_BY_DEFAULT}; |
175 | 175 |
| 176 // Let video without audio be paused when it is playing in the background. |
| 177 const base::Feature kBackgroundVideoPauseOptimization{ |
| 178 "BackgroundVideoPauseOptimization", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 179 |
176 // Make MSE garbage collection algorithm more aggressive when we are under | 180 // Make MSE garbage collection algorithm more aggressive when we are under |
177 // moderate or critical memory pressure. This will relieve memory pressure by | 181 // moderate or critical memory pressure. This will relieve memory pressure by |
178 // releasing stale data from MSE buffers. | 182 // releasing stale data from MSE buffers. |
179 const base::Feature kMemoryPressureBasedSourceBufferGC{ | 183 const base::Feature kMemoryPressureBasedSourceBufferGC{ |
180 "MemoryPressureBasedSourceBufferGC", base::FEATURE_DISABLED_BY_DEFAULT}; | 184 "MemoryPressureBasedSourceBufferGC", base::FEATURE_DISABLED_BY_DEFAULT}; |
181 | 185 |
182 // Use shared block-based buffering for media. | 186 // Use shared block-based buffering for media. |
183 const base::Feature kUseNewMediaCache{"use-new-media-cache", | 187 const base::Feature kUseNewMediaCache{"use-new-media-cache", |
184 base::FEATURE_ENABLED_BY_DEFAULT}; | 188 base::FEATURE_ENABLED_BY_DEFAULT}; |
185 | 189 |
(...skipping 18 matching lines...) Expand all Loading... |
204 | 208 |
205 // An experimental feature to enable persistent-license type support in MediaDrm | 209 // An experimental feature to enable persistent-license type support in MediaDrm |
206 // when using Encrypted Media Extensions (EME) API. | 210 // when using Encrypted Media Extensions (EME) API. |
207 // TODO(xhwang): Remove this after feature launch. See http://crbug.com/493521 | 211 // TODO(xhwang): Remove this after feature launch. See http://crbug.com/493521 |
208 const base::Feature kMediaDrmPersistentLicense{ | 212 const base::Feature kMediaDrmPersistentLicense{ |
209 "MediaDrmPersistentLicense", base::FEATURE_DISABLED_BY_DEFAULT}; | 213 "MediaDrmPersistentLicense", base::FEATURE_DISABLED_BY_DEFAULT}; |
210 | 214 |
211 #endif | 215 #endif |
212 | 216 |
213 } // namespace media | 217 } // namespace media |
OLD | NEW |