Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Side by Side Diff: media/base/media_switches.cc

Issue 2840813002: Media Engagement: implement shell of the media engagement service. (Closed)
Patch Set: rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/base/media_switches.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "build/build_config.h" 5 #include "build/build_config.h"
6 #include "media/base/media_switches.h" 6 #include "media/base/media_switches.h"
7 #include "ppapi/features/features.h" 7 #include "ppapi/features/features.h"
8 8
9 namespace switches { 9 namespace switches {
10 10
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 // Inform video blitter of video color space. 215 // Inform video blitter of video color space.
216 const base::Feature kVideoBlitColorAccuracy{"video-blit-color-accuracy", 216 const base::Feature kVideoBlitColorAccuracy{"video-blit-color-accuracy",
217 base::FEATURE_DISABLED_BY_DEFAULT}; 217 base::FEATURE_DISABLED_BY_DEFAULT};
218 218
219 // Enables support for External Clear Key (ECK) key system for testing on 219 // Enables support for External Clear Key (ECK) key system for testing on
220 // supported platforms. On platforms that do not support ECK, this feature has 220 // supported platforms. On platforms that do not support ECK, this feature has
221 // no effect. 221 // no effect.
222 const base::Feature kExternalClearKeyForTesting{ 222 const base::Feature kExternalClearKeyForTesting{
223 "external-clear-key-for-testing", base::FEATURE_DISABLED_BY_DEFAULT}; 223 "external-clear-key-for-testing", base::FEATURE_DISABLED_BY_DEFAULT};
224 224
225 // Enables Media Engagement Index recording in order to bypass autoplay
226 // policies.
227 const base::Feature kMediaEngagement{"media-engagement",
228 base::FEATURE_DISABLED_BY_DEFAULT};
229
225 #if defined(OS_ANDROID) 230 #if defined(OS_ANDROID)
226 // Lock the screen orientation when a video goes fullscreen. 231 // Lock the screen orientation when a video goes fullscreen.
227 const base::Feature kVideoFullscreenOrientationLock{ 232 const base::Feature kVideoFullscreenOrientationLock{
228 "VideoFullscreenOrientationLock", base::FEATURE_ENABLED_BY_DEFAULT}; 233 "VideoFullscreenOrientationLock", base::FEATURE_ENABLED_BY_DEFAULT};
229 234
230 // Enter/exit fullscreen when device is rotated to/from the video orientation. 235 // Enter/exit fullscreen when device is rotated to/from the video orientation.
231 const base::Feature kVideoRotateToFullscreen{"VideoRotateToFullscreen", 236 const base::Feature kVideoRotateToFullscreen{"VideoRotateToFullscreen",
232 base::FEATURE_DISABLED_BY_DEFAULT}; 237 base::FEATURE_DISABLED_BY_DEFAULT};
233 238
234 // An experimental feature to enable persistent-license type support in MediaDrm 239 // An experimental feature to enable persistent-license type support in MediaDrm
235 // when using Encrypted Media Extensions (EME) API. 240 // when using Encrypted Media Extensions (EME) API.
236 // TODO(xhwang): Remove this after feature launch. See http://crbug.com/493521 241 // TODO(xhwang): Remove this after feature launch. See http://crbug.com/493521
237 const base::Feature kMediaDrmPersistentLicense{ 242 const base::Feature kMediaDrmPersistentLicense{
238 "MediaDrmPersistentLicense", base::FEATURE_DISABLED_BY_DEFAULT}; 243 "MediaDrmPersistentLicense", base::FEATURE_DISABLED_BY_DEFAULT};
239 244
240 #endif 245 #endif
241 246
242 #if defined(OS_WIN) 247 #if defined(OS_WIN)
243 // Enables video decode acceleration using the D3D11 video decoder api. 248 // Enables video decode acceleration using the D3D11 video decoder api.
244 // This is completely insecure - DO NOT USE except for testing. 249 // This is completely insecure - DO NOT USE except for testing.
245 const base::Feature kD3D11VideoDecoding{"D3D11VideoDecoding", 250 const base::Feature kD3D11VideoDecoding{"D3D11VideoDecoding",
246 base::FEATURE_DISABLED_BY_DEFAULT}; 251 base::FEATURE_DISABLED_BY_DEFAULT};
247 252
248 // Enables H264 HW encode acceleration using Media Foundation for Windows. 253 // Enables H264 HW encode acceleration using Media Foundation for Windows.
249 const base::Feature kMediaFoundationH264Encoding{ 254 const base::Feature kMediaFoundationH264Encoding{
250 "MediaFoundationH264Encoding", base::FEATURE_ENABLED_BY_DEFAULT}; 255 "MediaFoundationH264Encoding", base::FEATURE_ENABLED_BY_DEFAULT};
251 #endif // defined(OS_WIN) 256 #endif // defined(OS_WIN)
252 257
253 } // namespace media 258 } // namespace media
OLDNEW
« no previous file with comments | « media/base/media_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698