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