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

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

Issue 2851453003: Revert of Rename kDisableGestureRequirementForMediaPlayback and make it a test-only flag. (Closed)
Patch Set: 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') | tools/perf/benchmarks/blink_perf.py » ('j') | 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 const char kEnableVp9InMp4[] = "enable-vp9-in-mp4"; 131 const char kEnableVp9InMp4[] = "enable-vp9-in-mp4";
132 132
133 // Force media player using SurfaceView instead of SurfaceTexture on Android. 133 // Force media player using SurfaceView instead of SurfaceTexture on Android.
134 const char kForceVideoOverlays[] = "force-video-overlays"; 134 const char kForceVideoOverlays[] = "force-video-overlays";
135 135
136 // Allows explicitly specifying MSE audio/video buffer sizes. 136 // Allows explicitly specifying MSE audio/video buffer sizes.
137 // Default values are 150M for video and 12M for audio. 137 // Default values are 150M for video and 12M for audio.
138 const char kMSEAudioBufferSizeLimit[] = "mse-audio-buffer-size-limit"; 138 const char kMSEAudioBufferSizeLimit[] = "mse-audio-buffer-size-limit";
139 const char kMSEVideoBufferSizeLimit[] = "mse-video-buffer-size-limit"; 139 const char kMSEVideoBufferSizeLimit[] = "mse-video-buffer-size-limit";
140 140
141 // Ignores all autoplay restrictions. It will ignore the current autoplay policy
142 // and all restrictions such as playback in a background tab. It should only be
143 // enabled for testing.
144 const char kIgnoreAutoplayRestrictionsForTests[] =
145 "ignore-autoplay-restrictions";
146
147 namespace autoplay { 141 namespace autoplay {
148 142
149 // Autoplay policy to require a user gesture in ordor to play for cross origin 143 // Autoplay policy to require a user gesture in ordor to play for cross origin
150 // iframes. 144 // iframes.
151 const char kCrossOriginUserGestureRequiredPolicy[] = 145 const char kCrossOriginUserGestureRequiredPolicy[] =
152 "cross-origin-user-gesture-required"; 146 "cross-origin-user-gesture-required";
153 147
154 // Autoplay policy that does not require any user gesture. 148 // Autoplay policy that does not require any user gesture.
155 const char kNoUserGestureRequiredPolicy[] = "no-user-gesture-required"; 149 const char kNoUserGestureRequiredPolicy[] = "no-user-gesture-required";
156 150
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 // This is completely insecure - DO NOT USE except for testing. 226 // This is completely insecure - DO NOT USE except for testing.
233 const base::Feature kD3D11VideoDecoding{"D3D11VideoDecoding", 227 const base::Feature kD3D11VideoDecoding{"D3D11VideoDecoding",
234 base::FEATURE_DISABLED_BY_DEFAULT}; 228 base::FEATURE_DISABLED_BY_DEFAULT};
235 229
236 // Enables H264 HW encode acceleration using Media Foundation for Windows. 230 // Enables H264 HW encode acceleration using Media Foundation for Windows.
237 const base::Feature kMediaFoundationH264Encoding{ 231 const base::Feature kMediaFoundationH264Encoding{
238 "MediaFoundationH264Encoding", base::FEATURE_ENABLED_BY_DEFAULT}; 232 "MediaFoundationH264Encoding", base::FEATURE_ENABLED_BY_DEFAULT};
239 #endif // defined(OS_WIN) 233 #endif // defined(OS_WIN)
240 234
241 } // namespace media 235 } // namespace media
OLDNEW
« no previous file with comments | « media/base/media_switches.h ('k') | tools/perf/benchmarks/blink_perf.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698