diff options
author | mcasas@chromium.org <mcasas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-29 22:32:10 +0000 |
---|---|---|
committer | mcasas@chromium.org <mcasas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-29 22:32:10 +0000 |
commit | 461cbca8cdbfc5bfbae0dbe735a9ab9efc875b02 (patch) | |
tree | fca678904a3adf0f1dc48093ff40b44e80758758 /media/base | |
parent | c3c372ed390000bf3dfa8f97392d3a8098154e19 (diff) | |
download | chromium_src-461cbca8cdbfc5bfbae0dbe735a9ab9efc875b02.zip chromium_src-461cbca8cdbfc5bfbae0dbe735a9ab9efc875b02.tar.gz chromium_src-461cbca8cdbfc5bfbae0dbe735a9ab9efc875b02.tar.bz2 |
Added flag to enable AVFoundation in Mac
From the flag documentation:
" AVFoundation is available in versions 10.7 and onwards, and is to be used
http://crbug.com/288562 for both audio and video device monitoring and for
video capture. Being a dynamically loaded NSBundle and library, it hits the
Chrome startup time (http://crbug.com/311325 and http://crbug.com/311437);
until development is finished and the library load time issue is solved, the
usage of this library is hidden behind this flag. "
BUG=288562, 311325, 311437
Review URL: https://codereview.chromium.org/50213004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231659 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base')
-rw-r--r-- | media/base/media_switches.cc | 7 | ||||
-rw-r--r-- | media/base/media_switches.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/media/base/media_switches.cc b/media/base/media_switches.cc index 8ae41eb..4e75216 100644 --- a/media/base/media_switches.cc +++ b/media/base/media_switches.cc @@ -56,6 +56,13 @@ const char kAlsaOutputDevice[] = "alsa-output-device"; // tested. See http://crbug.com/158170. // TODO(dalecurtis): Remove this once we're sure nothing has exploded. const char kDisableMainThreadAudio[] = "disable-main-thread-audio"; +// AVFoundation is available in versions 10.7 and onwards, and is to be used +// http://crbug.com/288562 for both audio and video device monitoring and for +// video capture. Being a dynamically loaded NSBundle and library, it hits the +// Chrome startup time (http://crbug.com/311325 and http://crbug.com/311437); +// until development is finished and the library load time issue is solved, the +// usage of this library is hidden behind this flag. +const char kEnableAVFoundation[] = "enable-avfoundation"; #endif #if defined(OS_WIN) diff --git a/media/base/media_switches.h b/media/base/media_switches.h index feb65c4..69fb10e 100644 --- a/media/base/media_switches.h +++ b/media/base/media_switches.h @@ -40,6 +40,7 @@ MEDIA_EXPORT extern const char kAlsaOutputDevice[]; #if defined(OS_MACOSX) MEDIA_EXPORT extern const char kDisableMainThreadAudio[]; +MEDIA_EXPORT extern const char kEnableAVFoundation[]; #endif #if defined(OS_WIN) |