| 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 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 namespace switches { | 10 namespace switches { |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 "NewRemotePlaybackPipeline", base::FEATURE_DISABLED_BY_DEFAULT}; | 235 "NewRemotePlaybackPipeline", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 236 | 236 |
| 237 // CanPlayThrough issued according to standard. | 237 // CanPlayThrough issued according to standard. |
| 238 const base::Feature kSpecCompliantCanPlayThrough{ | 238 const base::Feature kSpecCompliantCanPlayThrough{ |
| 239 "SpecCompliantCanPlayThrough", base::FEATURE_ENABLED_BY_DEFAULT}; | 239 "SpecCompliantCanPlayThrough", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 240 | 240 |
| 241 // Use shared block-based buffering for media. | 241 // Use shared block-based buffering for media. |
| 242 const base::Feature kUseNewMediaCache{"use-new-media-cache", | 242 const base::Feature kUseNewMediaCache{"use-new-media-cache", |
| 243 base::FEATURE_ENABLED_BY_DEFAULT}; | 243 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 244 | 244 |
| 245 // Use R16 texture for 9-16 bit channel instead of half-float conversion by CPU. |
| 246 const base::Feature kUseR16Texture{"use-r16-texture", |
| 247 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 248 |
| 245 // Correct video colors based on output display? | 249 // Correct video colors based on output display? |
| 246 const base::Feature kVideoColorManagement{"video-color-management", | 250 const base::Feature kVideoColorManagement{"video-color-management", |
| 247 base::FEATURE_DISABLED_BY_DEFAULT}; | 251 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 248 | 252 |
| 249 // Use SurfaceLayer instead of VideoLayer. | 253 // Use SurfaceLayer instead of VideoLayer. |
| 250 const base::Feature kUseSurfaceLayerForVideo{"UseSurfaceLayerForVideo", | 254 const base::Feature kUseSurfaceLayerForVideo{"UseSurfaceLayerForVideo", |
| 251 base::FEATURE_DISABLED_BY_DEFAULT}; | 255 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 252 | 256 |
| 253 // Inform video blitter of video color space. | 257 // Inform video blitter of video color space. |
| 254 const base::Feature kVideoBlitColorAccuracy{"video-blit-color-accuracy", | 258 const base::Feature kVideoBlitColorAccuracy{"video-blit-color-accuracy", |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 | 326 |
| 323 // The default value is platform dependent. | 327 // The default value is platform dependent. |
| 324 #if defined(OS_ANDROID) | 328 #if defined(OS_ANDROID) |
| 325 return switches::autoplay::kUserGestureRequiredPolicy; | 329 return switches::autoplay::kUserGestureRequiredPolicy; |
| 326 #else | 330 #else |
| 327 return switches::autoplay::kNoUserGestureRequiredPolicy; | 331 return switches::autoplay::kNoUserGestureRequiredPolicy; |
| 328 #endif | 332 #endif |
| 329 } | 333 } |
| 330 | 334 |
| 331 } // namespace media | 335 } // namespace media |
| OLD | NEW |