summaryrefslogtreecommitdiffstats
path: root/third_party/libwebrtc/moz-patch-stack/0066.patch
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/libwebrtc/moz-patch-stack/0066.patch')
-rw-r--r--third_party/libwebrtc/moz-patch-stack/0066.patch78
1 files changed, 78 insertions, 0 deletions
diff --git a/third_party/libwebrtc/moz-patch-stack/0066.patch b/third_party/libwebrtc/moz-patch-stack/0066.patch
new file mode 100644
index 0000000000..6c4bb19816
--- /dev/null
+++ b/third_party/libwebrtc/moz-patch-stack/0066.patch
@@ -0,0 +1,78 @@
+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 9fd472f10b..612483cef8 100644
+--- a/BUILD.gn
++++ b/BUILD.gn
+@@ -601,6 +601,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 4f5ceb5ed3..eea26dc31d 100644
+--- a/sdk/BUILD.gn
++++ b/sdk/BUILD.gn
+@@ -533,6 +533,7 @@ if (is_ios || is_mac) {
+ }
+ }
+
++ if (!build_with_mozilla) {
+ rtc_library("videosource_objc") {
+ sources = [
+ "objc/api/peerconnection/RTCVideoSource+Private.h",
+@@ -562,6 +563,7 @@ if (is_ios || is_mac) {
+ ":used_from_extension",
+ ]
+ }
++ }
+
+ rtc_library("videoframebuffer_objc") {
+ visibility = [ "*" ]
+@@ -594,6 +596,7 @@ if (is_ios || is_mac) {
+ ]
+ }
+
++ if (!build_with_mozilla) {
+ rtc_library("metal_objc") {
+ visibility = [ "*" ]
+ allow_poison = [
+@@ -655,6 +658,7 @@ if (is_ios || is_mac) {
+ ":videoframebuffer_objc",
+ ]
+ }
++ }
+
+ rtc_library("videocapture_objc") {
+ visibility = [ "*" ]
+@@ -683,6 +687,7 @@ if (is_ios || is_mac) {
+ ]
+ }
+
++ if (!build_with_mozilla) {
+ rtc_library("videocodec_objc") {
+ visibility = [ "*" ]
+ configs += [ "..:no_global_constructors" ]
+@@ -1729,5 +1734,6 @@ if (is_ios || is_mac) {
+ "VideoToolbox.framework",
+ ]
+ }
++ }
+ }
+ }