| 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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 "SpecCompliantCanPlayThrough", base::FEATURE_ENABLED_BY_DEFAULT}; | 236 "SpecCompliantCanPlayThrough", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 237 | 237 |
| 238 // Use shared block-based buffering for media. | 238 // Use shared block-based buffering for media. |
| 239 const base::Feature kUseNewMediaCache{"use-new-media-cache", | 239 const base::Feature kUseNewMediaCache{"use-new-media-cache", |
| 240 base::FEATURE_ENABLED_BY_DEFAULT}; | 240 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 241 | 241 |
| 242 // Correct video colors based on output display? | 242 // Correct video colors based on output display? |
| 243 const base::Feature kVideoColorManagement{"video-color-management", | 243 const base::Feature kVideoColorManagement{"video-color-management", |
| 244 base::FEATURE_DISABLED_BY_DEFAULT}; | 244 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 245 | 245 |
| 246 // Use SurfaceLayer instead of VideoLayer. |
| 247 const base::Feature kVideoSurface{"video-surface", |
| 248 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 249 |
| 246 // Inform video blitter of video color space. | 250 // Inform video blitter of video color space. |
| 247 const base::Feature kVideoBlitColorAccuracy{"video-blit-color-accuracy", | 251 const base::Feature kVideoBlitColorAccuracy{"video-blit-color-accuracy", |
| 248 base::FEATURE_DISABLED_BY_DEFAULT}; | 252 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 249 | 253 |
| 250 // Enables support for External Clear Key (ECK) key system for testing on | 254 // Enables support for External Clear Key (ECK) key system for testing on |
| 251 // supported platforms. On platforms that do not support ECK, this feature has | 255 // supported platforms. On platforms that do not support ECK, this feature has |
| 252 // no effect. | 256 // no effect. |
| 253 const base::Feature kExternalClearKeyForTesting{ | 257 const base::Feature kExternalClearKeyForTesting{ |
| 254 "external-clear-key-for-testing", base::FEATURE_DISABLED_BY_DEFAULT}; | 258 "external-clear-key-for-testing", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 255 | 259 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 | 311 |
| 308 // The default value is platform dependent. | 312 // The default value is platform dependent. |
| 309 #if defined(OS_ANDROID) | 313 #if defined(OS_ANDROID) |
| 310 return switches::autoplay::kUserGestureRequiredPolicy; | 314 return switches::autoplay::kUserGestureRequiredPolicy; |
| 311 #else | 315 #else |
| 312 return switches::autoplay::kNoUserGestureRequiredPolicy; | 316 return switches::autoplay::kNoUserGestureRequiredPolicy; |
| 313 #endif | 317 #endif |
| 314 } | 318 } |
| 315 | 319 |
| 316 } // namespace media | 320 } // namespace media |
| OLD | NEW |