Lines 1-4
Link Here
|
1 |
--- media/base/media_switches.cc.orig 2024-04-19 13:02:56 UTC |
1 |
--- media/base/media_switches.cc.orig 2024-05-06 11:00:55 UTC |
2 |
+++ media/base/media_switches.cc |
2 |
+++ media/base/media_switches.cc |
3 |
@@ -21,7 +21,7 @@ |
3 |
@@ -21,7 +21,7 @@ |
4 |
#include "ui/gl/gl_features.h" |
4 |
#include "ui/gl/gl_features.h" |
Lines 9-15
Link Here
|
9 |
#include "base/cpu.h" |
9 |
#include "base/cpu.h" |
10 |
#endif |
10 |
#endif |
11 |
|
11 |
|
12 |
@@ -363,8 +363,8 @@ BASE_FEATURE(kMacLoopbackAudioForScreenShare, |
12 |
@@ -60,6 +60,10 @@ const char kDisableBackgroundMediaSuspend[] = |
|
|
13 |
const char kReportVp9AsAnUnsupportedMimeType[] = |
14 |
"report-vp9-as-an-unsupported-mime-type"; |
15 |
|
16 |
+#if BUILDFLAG(IS_BSD) |
17 |
+const char kAudioBackend[] = "audio-backend"; |
18 |
+#endif |
19 |
+ |
20 |
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FREEBSD) || \ |
21 |
BUILDFLAG(IS_SOLARIS) |
22 |
// The Alsa device to use when opening an audio input stream. |
23 |
@@ -363,8 +367,8 @@ BASE_FEATURE(kMacLoopbackAudioForScreenShare, |
13 |
"MacLoopbackAudioForScreenShare", |
24 |
"MacLoopbackAudioForScreenShare", |
14 |
base::FEATURE_DISABLED_BY_DEFAULT); |
25 |
base::FEATURE_DISABLED_BY_DEFAULT); |
15 |
#endif // BUILDFLAG(IS_MAC) |
26 |
#endif // BUILDFLAG(IS_MAC) |
Lines 20-35
Link Here
|
20 |
// Enables system audio mirroring using pulseaudio. |
31 |
// Enables system audio mirroring using pulseaudio. |
21 |
BASE_FEATURE(kPulseaudioLoopbackForCast, |
32 |
BASE_FEATURE(kPulseaudioLoopbackForCast, |
22 |
"PulseaudioLoopbackForCast", |
33 |
"PulseaudioLoopbackForCast", |
23 |
@@ -597,7 +597,7 @@ BASE_FEATURE(kUseWritePixelsYUV, |
34 |
@@ -713,7 +717,7 @@ BASE_FEATURE(kFallbackAfterDecodeError, |
24 |
BASE_FEATURE(kUseMultiPlaneFormatForHardwareVideo, |
|
|
25 |
"UseMultiPlaneFormatForHardwareVideo", |
26 |
#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_FUCHSIA) || \ |
27 |
- BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) |
28 |
+ BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) |
29 |
base::FEATURE_ENABLED_BY_DEFAULT |
30 |
#else |
31 |
base::FEATURE_DISABLED_BY_DEFAULT |
32 |
@@ -713,7 +713,7 @@ BASE_FEATURE(kFallbackAfterDecodeError, |
33 |
// Show toolbar button that opens dialog for controlling media sessions. |
35 |
// Show toolbar button that opens dialog for controlling media sessions. |
34 |
BASE_FEATURE(kGlobalMediaControls, |
36 |
BASE_FEATURE(kGlobalMediaControls, |
35 |
"GlobalMediaControls", |
37 |
"GlobalMediaControls", |
Lines 38-44
Link Here
|
38 |
base::FEATURE_ENABLED_BY_DEFAULT |
40 |
base::FEATURE_ENABLED_BY_DEFAULT |
39 |
#else |
41 |
#else |
40 |
base::FEATURE_DISABLED_BY_DEFAULT |
42 |
base::FEATURE_DISABLED_BY_DEFAULT |
41 |
@@ -741,7 +741,7 @@ BASE_FEATURE(kGlobalMediaControlsUpdatedUI, |
43 |
@@ -741,7 +745,7 @@ BASE_FEATURE(kGlobalMediaControlsUpdatedUI, |
42 |
// If enabled, users can request Media Remoting without fullscreen-in-tab. |
44 |
// If enabled, users can request Media Remoting without fullscreen-in-tab. |
43 |
BASE_FEATURE(kMediaRemotingWithoutFullscreen, |
45 |
BASE_FEATURE(kMediaRemotingWithoutFullscreen, |
44 |
"MediaRemotingWithoutFullscreen", |
46 |
"MediaRemotingWithoutFullscreen", |
Lines 47-53
Link Here
|
47 |
base::FEATURE_ENABLED_BY_DEFAULT |
49 |
base::FEATURE_ENABLED_BY_DEFAULT |
48 |
#else |
50 |
#else |
49 |
base::FEATURE_DISABLED_BY_DEFAULT |
51 |
base::FEATURE_DISABLED_BY_DEFAULT |
50 |
@@ -753,7 +753,7 @@ BASE_FEATURE(kMediaRemotingWithoutFullscreen, |
52 |
@@ -753,7 +757,7 @@ BASE_FEATURE(kMediaRemotingWithoutFullscreen, |
51 |
BASE_FEATURE(kGlobalMediaControlsPictureInPicture, |
53 |
BASE_FEATURE(kGlobalMediaControlsPictureInPicture, |
52 |
"GlobalMediaControlsPictureInPicture", |
54 |
"GlobalMediaControlsPictureInPicture", |
53 |
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ |
55 |
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ |
Lines 56-62
Link Here
|
56 |
base::FEATURE_ENABLED_BY_DEFAULT |
58 |
base::FEATURE_ENABLED_BY_DEFAULT |
57 |
#else |
59 |
#else |
58 |
base::FEATURE_DISABLED_BY_DEFAULT |
60 |
base::FEATURE_DISABLED_BY_DEFAULT |
59 |
@@ -782,7 +782,7 @@ BASE_FEATURE(kUnifiedAutoplay, |
61 |
@@ -782,7 +786,7 @@ BASE_FEATURE(kUnifiedAutoplay, |
60 |
"UnifiedAutoplay", |
62 |
"UnifiedAutoplay", |
61 |
base::FEATURE_ENABLED_BY_DEFAULT); |
63 |
base::FEATURE_ENABLED_BY_DEFAULT); |
62 |
|
64 |
|
Lines 65-71
Link Here
|
65 |
// Enable vaapi video decoding on linux. This is already enabled by default on |
67 |
// Enable vaapi video decoding on linux. This is already enabled by default on |
66 |
// chromeos, but needs an experiment on linux. |
68 |
// chromeos, but needs an experiment on linux. |
67 |
BASE_FEATURE(kVaapiVideoDecodeLinux, |
69 |
BASE_FEATURE(kVaapiVideoDecodeLinux, |
68 |
@@ -873,7 +873,7 @@ BASE_FEATURE(kVaapiVp9SModeHWEncoding, |
70 |
@@ -873,7 +877,7 @@ BASE_FEATURE(kVaapiVp9SModeHWEncoding, |
69 |
"VaapiVp9SModeHWEncoding", |
71 |
"VaapiVp9SModeHWEncoding", |
70 |
base::FEATURE_DISABLED_BY_DEFAULT); |
72 |
base::FEATURE_DISABLED_BY_DEFAULT); |
71 |
#endif // defined(ARCH_CPU_X86_FAMILY) && BUILDFLAG(IS_CHROMEOS) |
73 |
#endif // defined(ARCH_CPU_X86_FAMILY) && BUILDFLAG(IS_CHROMEOS) |
Lines 74-80
Link Here
|
74 |
// Enables the new V4L2 flat video decoder clients instead of V4L2VideoDecoder. |
76 |
// Enables the new V4L2 flat video decoder clients instead of V4L2VideoDecoder. |
75 |
// Owners: frkoenig@chromium.org, mcasas@chromium.org |
77 |
// Owners: frkoenig@chromium.org, mcasas@chromium.org |
76 |
// Expiry: When flat decoders are supported on all platforms and the legacy |
78 |
// Expiry: When flat decoders are supported on all platforms and the legacy |
77 |
@@ -998,7 +998,7 @@ BASE_FEATURE(kLiveCaptionUseWaitK, |
79 |
@@ -998,7 +1002,7 @@ BASE_FEATURE(kLiveCaptionUseWaitK, |
78 |
// Live Caption can be used in multiple languages, as opposed to just English. |
80 |
// Live Caption can be used in multiple languages, as opposed to just English. |
79 |
BASE_FEATURE(kLiveCaptionMultiLanguage, |
81 |
BASE_FEATURE(kLiveCaptionMultiLanguage, |
80 |
"LiveCaptionMultiLanguage", |
82 |
"LiveCaptionMultiLanguage", |
Lines 83-89
Link Here
|
83 |
base::FEATURE_ENABLED_BY_DEFAULT |
85 |
base::FEATURE_ENABLED_BY_DEFAULT |
84 |
#else |
86 |
#else |
85 |
base::FEATURE_DISABLED_BY_DEFAULT |
87 |
base::FEATURE_DISABLED_BY_DEFAULT |
86 |
@@ -1033,7 +1033,7 @@ BASE_FEATURE(kLiveCaptionSystemWideOnChromeOS, |
88 |
@@ -1033,7 +1037,7 @@ BASE_FEATURE(kLiveCaptionSystemWideOnChromeOS, |
87 |
// Live Translate translates captions generated by Live Caption. |
89 |
// Live Translate translates captions generated by Live Caption. |
88 |
BASE_FEATURE(kLiveTranslate, |
90 |
BASE_FEATURE(kLiveTranslate, |
89 |
"LiveTranslate", |
91 |
"LiveTranslate", |
Lines 92-98
Link Here
|
92 |
base::FEATURE_ENABLED_BY_DEFAULT |
94 |
base::FEATURE_ENABLED_BY_DEFAULT |
93 |
#else |
95 |
#else |
94 |
base::FEATURE_DISABLED_BY_DEFAULT |
96 |
base::FEATURE_DISABLED_BY_DEFAULT |
95 |
@@ -1500,7 +1500,7 @@ BASE_FEATURE(kUseGTFOOutOfProcessVideoDecoding, |
97 |
@@ -1500,7 +1504,7 @@ BASE_FEATURE(kUseGTFOOutOfProcessVideoDecoding, |
96 |
base::FEATURE_DISABLED_BY_DEFAULT); |
98 |
base::FEATURE_DISABLED_BY_DEFAULT); |
97 |
#endif // BUILDFLAG(ALLOW_OOP_VIDEO_DECODER) |
99 |
#endif // BUILDFLAG(ALLOW_OOP_VIDEO_DECODER) |
98 |
|
100 |
|