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" |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 MEDIA_EXPORT extern const base::Feature kMojoCdm; | 114 MEDIA_EXPORT extern const base::Feature kMojoCdm; |
115 MEDIA_EXPORT extern const base::Feature kMseFlacInIsobmff; | 115 MEDIA_EXPORT extern const base::Feature kMseFlacInIsobmff; |
116 MEDIA_EXPORT extern const base::Feature kNewAudioRenderingMixingStrategy; | 116 MEDIA_EXPORT extern const base::Feature kNewAudioRenderingMixingStrategy; |
117 MEDIA_EXPORT extern const base::Feature kNewRemotePlaybackPipeline; | 117 MEDIA_EXPORT extern const base::Feature kNewRemotePlaybackPipeline; |
118 MEDIA_EXPORT extern const base::Feature kOverlayFullscreenVideo; | 118 MEDIA_EXPORT extern const base::Feature kOverlayFullscreenVideo; |
119 MEDIA_EXPORT extern const base::Feature kResumeBackgroundVideo; | 119 MEDIA_EXPORT extern const base::Feature kResumeBackgroundVideo; |
120 MEDIA_EXPORT extern const base::Feature kSpecCompliantCanPlayThrough; | 120 MEDIA_EXPORT extern const base::Feature kSpecCompliantCanPlayThrough; |
121 MEDIA_EXPORT extern const base::Feature kSupportExperimentalCdmInterface; | 121 MEDIA_EXPORT extern const base::Feature kSupportExperimentalCdmInterface; |
122 MEDIA_EXPORT extern const base::Feature kUseAndroidOverlay; | 122 MEDIA_EXPORT extern const base::Feature kUseAndroidOverlay; |
123 MEDIA_EXPORT extern const base::Feature kUseNewMediaCache; | 123 MEDIA_EXPORT extern const base::Feature kUseNewMediaCache; |
| 124 MEDIA_EXPORT extern const base::Feature kUseR16Texture; |
124 MEDIA_EXPORT extern const base::Feature kVideoBlitColorAccuracy; | 125 MEDIA_EXPORT extern const base::Feature kVideoBlitColorAccuracy; |
125 MEDIA_EXPORT extern const base::Feature kVideoColorManagement; | 126 MEDIA_EXPORT extern const base::Feature kVideoColorManagement; |
126 MEDIA_EXPORT extern const base::Feature kUseSurfaceLayerForVideo; | 127 MEDIA_EXPORT extern const base::Feature kUseSurfaceLayerForVideo; |
127 | 128 |
128 #if defined(OS_ANDROID) | 129 #if defined(OS_ANDROID) |
129 MEDIA_EXPORT extern const base::Feature kVideoFullscreenOrientationLock; | 130 MEDIA_EXPORT extern const base::Feature kVideoFullscreenOrientationLock; |
130 MEDIA_EXPORT extern const base::Feature kVideoRotateToFullscreen; | 131 MEDIA_EXPORT extern const base::Feature kVideoRotateToFullscreen; |
131 MEDIA_EXPORT extern const base::Feature kMediaDrmPersistentLicense; | 132 MEDIA_EXPORT extern const base::Feature kMediaDrmPersistentLicense; |
132 #endif // defined(OS_ANDROID) | 133 #endif // defined(OS_ANDROID) |
133 | 134 |
134 #if defined(OS_WIN) | 135 #if defined(OS_WIN) |
135 MEDIA_EXPORT extern const base::Feature kD3D11VideoDecoding; | 136 MEDIA_EXPORT extern const base::Feature kD3D11VideoDecoding; |
136 MEDIA_EXPORT extern const base::Feature kDelayCopyNV12Textures; | 137 MEDIA_EXPORT extern const base::Feature kDelayCopyNV12Textures; |
137 MEDIA_EXPORT extern const base::Feature kMediaFoundationH264Encoding; | 138 MEDIA_EXPORT extern const base::Feature kMediaFoundationH264Encoding; |
138 #endif // defined(OS_WIN) | 139 #endif // defined(OS_WIN) |
139 | 140 |
140 // Based on a |command_line| and the current platform, returns the effective | 141 // Based on a |command_line| and the current platform, returns the effective |
141 // autoplay policy. In other words, it will take into account the default policy | 142 // autoplay policy. In other words, it will take into account the default policy |
142 // if none is specified via the command line and options passed for testing. | 143 // if none is specified via the command line and options passed for testing. |
143 // Returns one of the possible autoplay policy switches from the | 144 // Returns one of the possible autoplay policy switches from the |
144 // switches::autoplay namespace. | 145 // switches::autoplay namespace. |
145 MEDIA_EXPORT std::string GetEffectiveAutoplayPolicy( | 146 MEDIA_EXPORT std::string GetEffectiveAutoplayPolicy( |
146 const base::CommandLine& command_line); | 147 const base::CommandLine& command_line); |
147 | 148 |
148 } // namespace media | 149 } // namespace media |
149 | 150 |
150 #endif // MEDIA_BASE_MEDIA_SWITCHES_H_ | 151 #endif // MEDIA_BASE_MEDIA_SWITCHES_H_ |
OLD | NEW |