summaryrefslogtreecommitdiffstats
path: root/third_party/libwebrtc/moz-patch-stack/0073.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /third_party/libwebrtc/moz-patch-stack/0073.patch
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--third_party/libwebrtc/moz-patch-stack/0073.patch81
1 files changed, 81 insertions, 0 deletions
diff --git a/third_party/libwebrtc/moz-patch-stack/0073.patch b/third_party/libwebrtc/moz-patch-stack/0073.patch
new file mode 100644
index 0000000000..08c123508b
--- /dev/null
+++ b/third_party/libwebrtc/moz-patch-stack/0073.patch
@@ -0,0 +1,81 @@
+From: Andreas Pehrson <apehrson@mozilla.com>
+Date: Mon, 12 Dec 2022 15:47:00 +0000
+Subject: Bug 1451394 - Expose mac camera capture backend in .gn and switch it
+ to gecko libyuv. r=webrtc-reviewers,mjf
+
+Differential Revision: https://phabricator.services.mozilla.com/D163682
+Mercurial Revision: https://hg.mozilla.org/mozilla-central/rev/b0658888969395dca938597783c8a377b9bea209
+---
+ BUILD.gn | 4 ++++
+ sdk/BUILD.gn | 6 ++++++
+ 2 files changed, 10 insertions(+)
+
+diff --git a/BUILD.gn b/BUILD.gn
+index 0272f6a8fe..6515866c2d 100644
+--- a/BUILD.gn
++++ b/BUILD.gn
+@@ -559,6 +559,10 @@ if (!build_with_chromium) {
+ ]
+ }
+
++ if (build_with_mozilla && is_mac) {
++ deps += [ "sdk:videocapture_objc" ]
++ }
++
+ if (rtc_enable_protobuf) {
+ deps += [ "logging:rtc_event_log_proto" ]
+ }
+diff --git a/sdk/BUILD.gn b/sdk/BUILD.gn
+index a361656a59..65d1b10124 100644
+--- a/sdk/BUILD.gn
++++ b/sdk/BUILD.gn
+@@ -449,6 +449,7 @@ if (is_ios || is_mac) {
+ ]
+ }
+
++ if (!build_with_mozilla) {
+ rtc_library("videosource_objc") {
+ sources = [
+ "objc/api/peerconnection/RTCVideoSource+Private.h",
+@@ -478,6 +479,7 @@ if (is_ios || is_mac) {
+ ":used_from_extension",
+ ]
+ }
++ }
+
+ rtc_library("videoframebuffer_objc") {
+ visibility = [ "*" ]
+@@ -510,6 +512,7 @@ if (is_ios || is_mac) {
+ ]
+ }
+
++ if (!build_with_mozilla) {
+ rtc_library("opengl_objc") {
+ sources = [
+ "objc/components/renderer/opengl/RTCDefaultShader.h",
+@@ -662,6 +665,7 @@ if (is_ios || is_mac) {
+ ":videoframebuffer_objc",
+ ]
+ }
++ }
+
+ rtc_library("videocapture_objc") {
+ visibility = [ "*" ]
+@@ -690,6 +694,7 @@ if (is_ios || is_mac) {
+ ]
+ }
+
++ if (!build_with_mozilla) {
+ rtc_library("videocodec_objc") {
+ visibility = [ "*" ]
+ configs += [ "..:no_global_constructors" ]
+@@ -1747,5 +1752,6 @@ if (is_ios || is_mac) {
+ "VideoToolbox.framework",
+ ]
+ }
++ }
+ }
+ }
+--
+2.34.1
+