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 // Defines all the "media" command-line switches. | 5 // Defines all the "media" command-line switches. |
6 | 6 |
7 #ifndef MEDIA_BASE_MEDIA_SWITCHES_H_ | 7 #ifndef MEDIA_BASE_MEDIA_SWITCHES_H_ |
8 #define MEDIA_BASE_MEDIA_SWITCHES_H_ | 8 #define MEDIA_BASE_MEDIA_SWITCHES_H_ |
9 | 9 |
10 #include "base/feature_list.h" | 10 #include "base/feature_list.h" |
11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
12 #include "media/base/media_export.h" | 12 #include "media/base/media_export.h" |
13 #include "media/media_features.h" | 13 #include "media/media_features.h" |
14 #include "ppapi/features/features.h" | 14 #include "ppapi/features/features.h" |
15 | 15 |
16 namespace switches { | 16 namespace switches { |
17 | 17 |
18 MEDIA_EXPORT extern const char kAudioBufferSize[]; | 18 MEDIA_EXPORT extern const char kAudioBufferSize[]; |
19 | 19 |
| 20 MEDIA_EXPORT extern const char kAutoplayPolicy[]; |
| 21 |
20 MEDIA_EXPORT extern const char kVideoThreads[]; | 22 MEDIA_EXPORT extern const char kVideoThreads[]; |
21 | 23 |
22 MEDIA_EXPORT extern const char kEnableMediaSuspend[]; | 24 MEDIA_EXPORT extern const char kEnableMediaSuspend[]; |
23 MEDIA_EXPORT extern const char kDisableMediaSuspend[]; | 25 MEDIA_EXPORT extern const char kDisableMediaSuspend[]; |
24 | 26 |
25 MEDIA_EXPORT extern const char kReportVp9AsAnUnsupportedMimeType[]; | 27 MEDIA_EXPORT extern const char kReportVp9AsAnUnsupportedMimeType[]; |
26 | 28 |
27 MEDIA_EXPORT extern const char kEnableNewVp9CodecString[]; | 29 MEDIA_EXPORT extern const char kEnableNewVp9CodecString[]; |
28 | 30 |
29 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_SOLARIS) | 31 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_SOLARIS) |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 70 |
69 MEDIA_EXPORT extern const char kDisableRTCSmoothnessAlgorithm[]; | 71 MEDIA_EXPORT extern const char kDisableRTCSmoothnessAlgorithm[]; |
70 | 72 |
71 MEDIA_EXPORT extern const char kEnableVp9InMp4[]; | 73 MEDIA_EXPORT extern const char kEnableVp9InMp4[]; |
72 | 74 |
73 MEDIA_EXPORT extern const char kForceVideoOverlays[]; | 75 MEDIA_EXPORT extern const char kForceVideoOverlays[]; |
74 | 76 |
75 MEDIA_EXPORT extern const char kMSEAudioBufferSizeLimit[]; | 77 MEDIA_EXPORT extern const char kMSEAudioBufferSizeLimit[]; |
76 MEDIA_EXPORT extern const char kMSEVideoBufferSizeLimit[]; | 78 MEDIA_EXPORT extern const char kMSEVideoBufferSizeLimit[]; |
77 | 79 |
| 80 namespace autoplay { |
| 81 |
| 82 MEDIA_EXPORT extern const char kCrossOriginUserGestureRequiredPolicy[]; |
| 83 MEDIA_EXPORT extern const char kNoUserGestureRequiredPolicy[]; |
| 84 MEDIA_EXPORT extern const char kUserGestureRequiredPolicy[]; |
| 85 |
| 86 } // namespace autoplay |
| 87 |
78 } // namespace switches | 88 } // namespace switches |
79 | 89 |
80 namespace media { | 90 namespace media { |
81 | 91 |
82 // All features in alphabetical order. The features should be documented | 92 // All features in alphabetical order. The features should be documented |
83 // alongside the definition of their values in the .cc file. | 93 // alongside the definition of their values in the .cc file. |
84 | 94 |
85 #if defined(OS_WIN) | 95 MEDIA_EXPORT extern const base::Feature kAutoplayPolicy; |
86 MEDIA_EXPORT extern const base::Feature kD3D11VideoDecoding; | |
87 MEDIA_EXPORT extern const base::Feature kMediaFoundationH264Encoding; | |
88 #endif // defined(OS_WIN) | |
89 | |
90 MEDIA_EXPORT extern const base::Feature kNewAudioRenderingMixingStrategy; | 96 MEDIA_EXPORT extern const base::Feature kNewAudioRenderingMixingStrategy; |
91 MEDIA_EXPORT extern const base::Feature kOverlayFullscreenVideo; | 97 MEDIA_EXPORT extern const base::Feature kOverlayFullscreenVideo; |
92 MEDIA_EXPORT extern const base::Feature kResumeBackgroundVideo; | 98 MEDIA_EXPORT extern const base::Feature kResumeBackgroundVideo; |
93 MEDIA_EXPORT extern const base::Feature kUseNewMediaCache; | 99 MEDIA_EXPORT extern const base::Feature kUseNewMediaCache; |
94 MEDIA_EXPORT extern const base::Feature kVideoColorManagement; | 100 MEDIA_EXPORT extern const base::Feature kVideoColorManagement; |
95 MEDIA_EXPORT extern const base::Feature kVideoBlitColorAccuracy; | 101 MEDIA_EXPORT extern const base::Feature kVideoBlitColorAccuracy; |
96 MEDIA_EXPORT extern const base::Feature kExternalClearKeyForTesting; | 102 MEDIA_EXPORT extern const base::Feature kExternalClearKeyForTesting; |
97 MEDIA_EXPORT extern const base::Feature kBackgroundVideoTrackOptimization; | 103 MEDIA_EXPORT extern const base::Feature kBackgroundVideoTrackOptimization; |
98 MEDIA_EXPORT extern const base::Feature kBackgroundVideoPauseOptimization; | 104 MEDIA_EXPORT extern const base::Feature kBackgroundVideoPauseOptimization; |
99 MEDIA_EXPORT extern const base::Feature kMemoryPressureBasedSourceBufferGC; | 105 MEDIA_EXPORT extern const base::Feature kMemoryPressureBasedSourceBufferGC; |
100 | 106 |
101 #if defined(OS_ANDROID) | 107 #if defined(OS_ANDROID) |
102 MEDIA_EXPORT extern const base::Feature kAndroidMediaPlayerRenderer; | 108 MEDIA_EXPORT extern const base::Feature kAndroidMediaPlayerRenderer; |
103 MEDIA_EXPORT extern const base::Feature kVideoFullscreenOrientationLock; | 109 MEDIA_EXPORT extern const base::Feature kVideoFullscreenOrientationLock; |
104 MEDIA_EXPORT extern const base::Feature kMediaDrmPersistentLicense; | 110 MEDIA_EXPORT extern const base::Feature kMediaDrmPersistentLicense; |
105 #endif // defined(OS_ANDROID) | 111 #endif // defined(OS_ANDROID) |
| 112 |
| 113 #if defined(OS_WIN) |
| 114 MEDIA_EXPORT extern const base::Feature kD3D11VideoDecoding; |
| 115 MEDIA_EXPORT extern const base::Feature kMediaFoundationH264Encoding; |
| 116 #endif // defined(OS_WIN) |
| 117 |
106 } // namespace media | 118 } // namespace media |
107 | 119 |
108 #endif // MEDIA_BASE_MEDIA_SWITCHES_H_ | 120 #endif // MEDIA_BASE_MEDIA_SWITCHES_H_ |
OLD | NEW |