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 // Bypass autodetection of the upper limit on resolution of streams that can | 18 // Bypass autodetection of the upper limit on resolution of streams that can |
19 // be hardware decoded. | 19 // be hardware decoded. |
20 const char kIgnoreResolutionLimitsForAcceleratedVideoDecode[] = | 20 const char kIgnoreResolutionLimitsForAcceleratedVideoDecode[] = |
21 "ignore-resolution-limits-for-accelerated-video-decode"; | 21 "ignore-resolution-limits-for-accelerated-video-decode"; |
22 | 22 |
23 #if defined(OS_ANDROID) | 23 #if defined(OS_ANDROID) |
24 // Disables the infobar popup for accessing protected media identifier. | 24 // Disables the infobar popup for accessing protected media identifier. |
25 const char kDisableInfobarForProtectedMediaIdentifier[] = | 25 const char kDisableInfobarForProtectedMediaIdentifier[] = |
26 "disable-infobar-for-protected-media-identifier"; | 26 "disable-infobar-for-protected-media-identifier"; |
| 27 |
| 28 // Sets the MediaSource player that uses the separate media thread |
| 29 const char kEnableMediaThreadForMediaPlayback[] = |
| 30 "enable-media-thread-for-media-playback"; |
27 #endif | 31 #endif |
28 | 32 |
29 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_SOLARIS) | 33 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_SOLARIS) |
30 // The Alsa device to use when opening an audio input stream. | 34 // The Alsa device to use when opening an audio input stream. |
31 const char kAlsaInputDevice[] = "alsa-input-device"; | 35 const char kAlsaInputDevice[] = "alsa-input-device"; |
32 // The Alsa device to use when opening an audio stream. | 36 // The Alsa device to use when opening an audio stream. |
33 const char kAlsaOutputDevice[] = "alsa-output-device"; | 37 const char kAlsaOutputDevice[] = "alsa-output-device"; |
34 #endif | 38 #endif |
35 | 39 |
36 #if defined(OS_MACOSX) | 40 #if defined(OS_MACOSX) |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 // this flag will cause the tests to fail. Otherwise, they silently succeed. | 117 // this flag will cause the tests to fail. Otherwise, they silently succeed. |
114 const char kRequireAudioHardwareForTesting[] = | 118 const char kRequireAudioHardwareForTesting[] = |
115 "require-audio-hardware-for-testing"; | 119 "require-audio-hardware-for-testing"; |
116 | 120 |
117 // Allows clients to override the threshold for when the media renderer will | 121 // Allows clients to override the threshold for when the media renderer will |
118 // declare the underflow state for the video stream when audio is present. | 122 // declare the underflow state for the video stream when audio is present. |
119 // TODO(dalecurtis): Remove once experiments for http://crbug.com/470940 finish. | 123 // TODO(dalecurtis): Remove once experiments for http://crbug.com/470940 finish. |
120 const char kVideoUnderflowThresholdMs[] = "video-underflow-threshold-ms"; | 124 const char kVideoUnderflowThresholdMs[] = "video-underflow-threshold-ms"; |
121 | 125 |
122 } // namespace switches | 126 } // namespace switches |
OLD | NEW |