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

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

Issue 2926393002: Enable vp09 codec string in WebM by default (Closed)
Patch Set: Created 3 years, 6 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') | media/base/mime_util_internal.cc » ('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 "media/base/media_switches.h" 5 #include "media/base/media_switches.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "ppapi/features/features.h" 8 #include "ppapi/features/features.h"
9 9
10 namespace switches { 10 namespace switches {
11 11
12 // Allow users to specify a custom buffer size for debugging purpose. 12 // Allow users to specify a custom buffer size for debugging purpose.
13 const char kAudioBufferSize[] = "audio-buffer-size"; 13 const char kAudioBufferSize[] = "audio-buffer-size";
14 14
15 // Command line flag name to set the autoplay policy. 15 // Command line flag name to set the autoplay policy.
16 const char kAutoplayPolicy[] = "autoplay-policy"; 16 const char kAutoplayPolicy[] = "autoplay-policy";
17 17
18 // Set number of threads to use for video decoding. 18 // Set number of threads to use for video decoding.
19 const char kVideoThreads[] = "video-threads"; 19 const char kVideoThreads[] = "video-threads";
20 20
21 // Suspend media pipeline on background tabs. 21 // Suspend media pipeline on background tabs.
22 const char kEnableMediaSuspend[] = "enable-media-suspend"; 22 const char kEnableMediaSuspend[] = "enable-media-suspend";
23 const char kDisableMediaSuspend[] = "disable-media-suspend"; 23 const char kDisableMediaSuspend[] = "disable-media-suspend";
24 24
25 // Force to report VP9 as an unsupported MIME type. 25 // Force to report VP9 as an unsupported MIME type.
26 const char kReportVp9AsAnUnsupportedMimeType[] = 26 const char kReportVp9AsAnUnsupportedMimeType[] =
27 "report-vp9-as-an-unsupported-mime-type"; 27 "report-vp9-as-an-unsupported-mime-type";
28 28
29 // Enable parsing of new multi-part VP9 string for webm.
30 const char kEnableNewVp9CodecString[] = "enable-new-vp9-codec-string";
31
32 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_SOLARIS) 29 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_SOLARIS)
33 // The Alsa device to use when opening an audio input stream. 30 // The Alsa device to use when opening an audio input stream.
34 const char kAlsaInputDevice[] = "alsa-input-device"; 31 const char kAlsaInputDevice[] = "alsa-input-device";
35 // The Alsa device to use when opening an audio stream. 32 // The Alsa device to use when opening an audio stream.
36 const char kAlsaOutputDevice[] = "alsa-output-device"; 33 const char kAlsaOutputDevice[] = "alsa-output-device";
37 #endif 34 #endif
38 35
39 #if defined(OS_WIN) 36 #if defined(OS_WIN)
40 // Use exclusive mode audio streaming for Windows Vista and higher. 37 // Use exclusive mode audio streaming for Windows Vista and higher.
41 // Leads to lower latencies for audio streams which uses the 38 // Leads to lower latencies for audio streams which uses the
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 291
295 // The default value is platform dependent. 292 // The default value is platform dependent.
296 #if defined(OS_ANDROID) 293 #if defined(OS_ANDROID)
297 return switches::autoplay::kUserGestureRequiredPolicy; 294 return switches::autoplay::kUserGestureRequiredPolicy;
298 #else 295 #else
299 return switches::autoplay::kNoUserGestureRequiredPolicy; 296 return switches::autoplay::kNoUserGestureRequiredPolicy;
300 #endif 297 #endif
301 } 298 }
302 299
303 } // namespace media 300 } // namespace media
OLDNEW
« no previous file with comments | « media/base/media_switches.h ('k') | media/base/mime_util_internal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698