| 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 "media/base/media_switches.h" | 5 #include "media/base/media_switches.h" |
| 6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 #include "ppapi/features/features.h" | 8 #include "ppapi/features/features.h" |
| 9 | 9 |
| 10 namespace switches { | 10 namespace switches { |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 // Let video without audio be paused when it is playing in the background. | 211 // Let video without audio be paused when it is playing in the background. |
| 212 const base::Feature kBackgroundVideoPauseOptimization{ | 212 const base::Feature kBackgroundVideoPauseOptimization{ |
| 213 "BackgroundVideoPauseOptimization", base::FEATURE_DISABLED_BY_DEFAULT}; | 213 "BackgroundVideoPauseOptimization", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 214 | 214 |
| 215 // Make MSE garbage collection algorithm more aggressive when we are under | 215 // Make MSE garbage collection algorithm more aggressive when we are under |
| 216 // moderate or critical memory pressure. This will relieve memory pressure by | 216 // moderate or critical memory pressure. This will relieve memory pressure by |
| 217 // releasing stale data from MSE buffers. | 217 // releasing stale data from MSE buffers. |
| 218 const base::Feature kMemoryPressureBasedSourceBufferGC{ | 218 const base::Feature kMemoryPressureBasedSourceBufferGC{ |
| 219 "MemoryPressureBasedSourceBufferGC", base::FEATURE_DISABLED_BY_DEFAULT}; | 219 "MemoryPressureBasedSourceBufferGC", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 220 | 220 |
| 221 // On systems where pepper CDMs are enabled, use mojo CDM instead of PPAPI CDM. | |
| 222 // Note that mojo CDM support is still under development. Some features are | |
| 223 // still missing and this feature should only be enabled for testing. | |
| 224 const base::Feature kMojoCdm{"MojoCdm", base::FEATURE_DISABLED_BY_DEFAULT}; | |
| 225 | |
| 226 // Use the new Remote Playback / media flinging pipeline. | 221 // Use the new Remote Playback / media flinging pipeline. |
| 227 const base::Feature kNewRemotePlaybackPipeline{ | 222 const base::Feature kNewRemotePlaybackPipeline{ |
| 228 "NewRemotePlaybackPipeline", base::FEATURE_DISABLED_BY_DEFAULT}; | 223 "NewRemotePlaybackPipeline", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 229 | 224 |
| 230 // CanPlayThrough issued according to standard. | 225 // CanPlayThrough issued according to standard. |
| 231 const base::Feature kSpecCompliantCanPlayThrough{ | 226 const base::Feature kSpecCompliantCanPlayThrough{ |
| 232 "CanPlayThrough", base::FEATURE_DISABLED_BY_DEFAULT}; | 227 "CanPlayThrough", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 233 | 228 |
| 234 // Use shared block-based buffering for media. | 229 // Use shared block-based buffering for media. |
| 235 const base::Feature kUseNewMediaCache{"use-new-media-cache", | 230 const base::Feature kUseNewMediaCache{"use-new-media-cache", |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 | 293 |
| 299 // The default value is platform dependent. | 294 // The default value is platform dependent. |
| 300 #if defined(OS_ANDROID) | 295 #if defined(OS_ANDROID) |
| 301 return switches::autoplay::kUserGestureRequiredPolicy; | 296 return switches::autoplay::kUserGestureRequiredPolicy; |
| 302 #else | 297 #else |
| 303 return switches::autoplay::kNoUserGestureRequiredPolicy; | 298 return switches::autoplay::kNoUserGestureRequiredPolicy; |
| 304 #endif | 299 #endif |
| 305 } | 300 } |
| 306 | 301 |
| 307 } // namespace media | 302 } // namespace media |
| OLD | NEW |