| 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 |
| 221 // Use the new Remote Playback / media flinging pipeline. | 226 // Use the new Remote Playback / media flinging pipeline. |
| 222 const base::Feature kNewRemotePlaybackPipeline{ | 227 const base::Feature kNewRemotePlaybackPipeline{ |
| 223 "NewRemotePlaybackPipeline", base::FEATURE_DISABLED_BY_DEFAULT}; | 228 "NewRemotePlaybackPipeline", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 224 | 229 |
| 225 // CanPlayThrough issued according to standard. | 230 // CanPlayThrough issued according to standard. |
| 226 const base::Feature kSpecCompliantCanPlayThrough{ | 231 const base::Feature kSpecCompliantCanPlayThrough{ |
| 227 "CanPlayThrough", base::FEATURE_DISABLED_BY_DEFAULT}; | 232 "CanPlayThrough", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 228 | 233 |
| 229 // Use shared block-based buffering for media. | 234 // Use shared block-based buffering for media. |
| 230 const base::Feature kUseNewMediaCache{"use-new-media-cache", | 235 const base::Feature kUseNewMediaCache{"use-new-media-cache", |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 | 298 |
| 294 // The default value is platform dependent. | 299 // The default value is platform dependent. |
| 295 #if defined(OS_ANDROID) | 300 #if defined(OS_ANDROID) |
| 296 return switches::autoplay::kUserGestureRequiredPolicy; | 301 return switches::autoplay::kUserGestureRequiredPolicy; |
| 297 #else | 302 #else |
| 298 return switches::autoplay::kNoUserGestureRequiredPolicy; | 303 return switches::autoplay::kNoUserGestureRequiredPolicy; |
| 299 #endif | 304 #endif |
| 300 } | 305 } |
| 301 | 306 |
| 302 } // namespace media | 307 } // namespace media |
| OLD | NEW |