| 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 namespace switches { | 7 namespace switches { |
| 8 | 8 |
| 9 // Allow users to specify a custom buffer size for debugging purpose. | 9 // Allow users to specify a custom buffer size for debugging purpose. |
| 10 const char kAudioBufferSize[] = "audio-buffer-size"; | 10 const char kAudioBufferSize[] = "audio-buffer-size"; |
| 11 | 11 |
| 12 // Disables the new vsync driven video renderering path. | 12 // Disables the new vsync driven video renderering path. |
| 13 const char kDisableNewVideoRenderer[] = "disable-new-video-renderer"; | 13 const char kDisableNewVideoRenderer[] = "disable-new-video-renderer"; |
| 14 | 14 |
| 15 // Set number of threads to use for video decoding. | 15 // Set number of threads to use for video decoding. |
| 16 const char kVideoThreads[] = "video-threads"; | 16 const char kVideoThreads[] = "video-threads"; |
| 17 | 17 |
| 18 #if defined(OS_ANDROID) | 18 #if defined(OS_ANDROID) |
| 19 // Disables the infobar popup for accessing protected media identifier. | |
| 20 const char kDisableInfobarForProtectedMediaIdentifier[] = | |
| 21 "disable-infobar-for-protected-media-identifier"; | |
| 22 | |
| 23 // Sets the MediaSource player that uses the separate media thread | 19 // Sets the MediaSource player that uses the separate media thread |
| 24 const char kEnableMediaThreadForMediaPlayback[] = | 20 const char kEnableMediaThreadForMediaPlayback[] = |
| 25 "enable-media-thread-for-media-playback"; | 21 "enable-media-thread-for-media-playback"; |
| 26 #endif | 22 #endif |
| 27 | 23 |
| 28 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_SOLARIS) | 24 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_SOLARIS) |
| 29 // The Alsa device to use when opening an audio input stream. | 25 // The Alsa device to use when opening an audio input stream. |
| 30 const char kAlsaInputDevice[] = "alsa-input-device"; | 26 const char kAlsaInputDevice[] = "alsa-input-device"; |
| 31 // The Alsa device to use when opening an audio stream. | 27 // The Alsa device to use when opening an audio stream. |
| 32 const char kAlsaOutputDevice[] = "alsa-output-device"; | 28 const char kAlsaOutputDevice[] = "alsa-output-device"; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 // this flag will cause the tests to fail. Otherwise, they silently succeed. | 108 // this flag will cause the tests to fail. Otherwise, they silently succeed. |
| 113 const char kRequireAudioHardwareForTesting[] = | 109 const char kRequireAudioHardwareForTesting[] = |
| 114 "require-audio-hardware-for-testing"; | 110 "require-audio-hardware-for-testing"; |
| 115 | 111 |
| 116 // Allows clients to override the threshold for when the media renderer will | 112 // Allows clients to override the threshold for when the media renderer will |
| 117 // declare the underflow state for the video stream when audio is present. | 113 // declare the underflow state for the video stream when audio is present. |
| 118 // TODO(dalecurtis): Remove once experiments for http://crbug.com/470940 finish. | 114 // TODO(dalecurtis): Remove once experiments for http://crbug.com/470940 finish. |
| 119 const char kVideoUnderflowThresholdMs[] = "video-underflow-threshold-ms"; | 115 const char kVideoUnderflowThresholdMs[] = "video-underflow-threshold-ms"; |
| 120 | 116 |
| 121 } // namespace switches | 117 } // namespace switches |
| OLD | NEW |