Update media_switches.cc

This commit is contained in:
Alexander David Frick 2022-04-29 19:23:41 -05:00 committed by GitHub
parent 3a6fc40fee
commit f253ec5891
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -245,6 +245,12 @@ const char kHardwareVideoDecodeFrameRate[] = "hardware-video-decode-framerate";
namespace media { namespace media {
#if BUILDFLAG(ENABLE_PLATFORM_HEVC) && BUILDFLAG(IS_ANDROID)
// Enables android HW decoding of HEVC content.
const base::Feature kMediaCodecHEVC{"AndroidHEVC",
base::FEATURE_DISABLED_BY_DEFAULT};
#endif // BUILDFLAG(ENABLE_PLATFORM_HEVC) && BUILDFLAG(IS_ANDROID)
// Prefer FFmpeg to LibVPX for Vp8 decoding with opaque alpha mode. // Prefer FFmpeg to LibVPX for Vp8 decoding with opaque alpha mode.
const base::Feature kFFmpegDecodeOpaqueVP8{"FFmpegDecodeOpaqueVP8", const base::Feature kFFmpegDecodeOpaqueVP8{"FFmpegDecodeOpaqueVP8",
base::FEATURE_ENABLED_BY_DEFAULT}; base::FEATURE_ENABLED_BY_DEFAULT};
@ -253,11 +259,6 @@ const base::Feature kFFmpegDecodeOpaqueVP8{"FFmpegDecodeOpaqueVP8",
const base::Feature kOverlayFullscreenVideo{"overlay-fullscreen-video", const base::Feature kOverlayFullscreenVideo{"overlay-fullscreen-video",
base::FEATURE_ENABLED_BY_DEFAULT}; base::FEATURE_ENABLED_BY_DEFAULT};
// Use a LocalMediaStreamAudioSource for getDisplayMedia captures with audio.
// TODO(crbug.com/1313841): Remove this after M107 branch point.
const base::Feature kDisplayAudioUseLocalAudioSource{
"DisplayAudioUseLocalAudioSource", base::FEATURE_ENABLED_BY_DEFAULT};
// Enables user control over muting tab audio from the tab strip. // Enables user control over muting tab audio from the tab strip.
const base::Feature kEnableTabMuting{"EnableTabMuting", const base::Feature kEnableTabMuting{"EnableTabMuting",
base::FEATURE_ENABLED_BY_DEFAULT}; base::FEATURE_ENABLED_BY_DEFAULT};
@ -594,7 +595,7 @@ const base::Feature kLiveCaption{"LiveCaption",
// tab instead" button is shown for chrome.desktopCapture captures. // tab instead" button is shown for chrome.desktopCapture captures.
const base::Feature kShareThisTabInsteadButtonGetDisplayMedia{ const base::Feature kShareThisTabInsteadButtonGetDisplayMedia{
"ShareThisTabInsteadButtonGetDisplayMedia", "ShareThisTabInsteadButtonGetDisplayMedia",
base::FEATURE_ENABLED_BY_DEFAULT}; base::FEATURE_DISABLED_BY_DEFAULT};
// If kShareThisTabInsteadButtonGetDisplayMedia is ENABLED, this flag controls // If kShareThisTabInsteadButtonGetDisplayMedia is ENABLED, this flag controls
// whether a "Share this tab instead" button should be enabled for // whether a "Share this tab instead" button should be enabled for