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"; |
(...skipping 10 matching lines...) Expand all Loading... |
21 // Set number of threads to use for video decoding. | 21 // Set number of threads to use for video decoding. |
22 const char kVideoThreads[] = "video-threads"; | 22 const char kVideoThreads[] = "video-threads"; |
23 | 23 |
24 // Override suppressed responses to canPlayType(). | 24 // Override suppressed responses to canPlayType(). |
25 const char kOverrideEncryptedMediaCanPlayType[] = | 25 const char kOverrideEncryptedMediaCanPlayType[] = |
26 "override-encrypted-media-canplaytype"; | 26 "override-encrypted-media-canplaytype"; |
27 | 27 |
28 // Enables MP3 stream parser for Media Source Extensions. | 28 // Enables MP3 stream parser for Media Source Extensions. |
29 const char kEnableMP3StreamParser[] = "enable-mp3-stream-parser"; | 29 const char kEnableMP3StreamParser[] = "enable-mp3-stream-parser"; |
30 | 30 |
| 31 #if defined(OS_ANDROID) |
| 32 // Enables use of non-compositing MediaDrm decoding by default for Encrypted |
| 33 // Media Extensions implementation. |
| 34 const char kMediaDrmEnableNonCompositing[] = "mediadrm-enable-non-compositing"; |
| 35 #endif |
| 36 |
31 #if defined(GOOGLE_TV) | 37 #if defined(GOOGLE_TV) |
32 // Use external video surface for video with more than or equal pixels to | 38 // Use external video surface for video with more than or equal pixels to |
33 // specified value. For example, value of 0 will enable external video surface | 39 // specified value. For example, value of 0 will enable external video surface |
34 // for all videos, and value of 921600 (=1280*720) will enable external video | 40 // for all videos, and value of 921600 (=1280*720) will enable external video |
35 // surface for 720p video and larger. | 41 // surface for 720p video and larger. |
36 const char kUseExternalVideoSurfaceThresholdInPixels[] = | 42 const char kUseExternalVideoSurfaceThresholdInPixels[] = |
37 "use-external-video-surface-threshold-in-pixels"; | 43 "use-external-video-surface-threshold-in-pixels"; |
38 #endif | 44 #endif |
39 | 45 |
40 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_SOLARIS) | 46 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_SOLARIS) |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 // Number of buffers to use for WaveOut. | 85 // Number of buffers to use for WaveOut. |
80 const char kWaveOutBuffers[] = "waveout-buffers"; | 86 const char kWaveOutBuffers[] = "waveout-buffers"; |
81 #endif | 87 #endif |
82 | 88 |
83 #if defined(USE_CRAS) | 89 #if defined(USE_CRAS) |
84 // Use CRAS, the ChromeOS audio server. | 90 // Use CRAS, the ChromeOS audio server. |
85 const char kUseCras[] = "use-cras"; | 91 const char kUseCras[] = "use-cras"; |
86 #endif | 92 #endif |
87 | 93 |
88 } // namespace switches | 94 } // namespace switches |
OLD | NEW |