Browse Source

Fix arm64 build of openH264

csagan5 5 years ago
parent
commit
afae804fdd
1 changed files with 0 additions and 18 deletions
  1. 0 18
      build/patches/openH264-enable-ARM-ARM64-optimizations.patch

+ 0 - 18
build/patches/openH264-enable-ARM-ARM64-optimizations.patch

@@ -30,24 +30,6 @@ diff --git a/third_party/blink/renderer/modules/mediarecorder/h264_encoder.cc b/
 diff --git a/third_party/openh264/BUILD.gn b/third_party/openh264/BUILD.gn
 --- a/third_party/openh264/BUILD.gn
 +++ b/third_party/openh264/BUILD.gn
-@@ -16,11 +16,16 @@ config("config") {
-     # HAVE_NEON and __chromeos__ are needed for enabling NEON on ChromeOS
-     # devices.
-     defines += [
--      "HAVE_NEON",
-       "__chromeos__",
-     ]
-   }
- 
-+  if (target_cpu == "arm" || target_cpu == "arm64") {
-+    defines += [
-+      "HAVE_NEON",
-+    ]
-+  }
-+
-   # GCC and clang flags. MSVS (is_win && !is_clang) does not use cflags.
-   if (!is_win || is_clang) {
-     cflags += [
 @@ -125,8 +130,12 @@ if (use_assembler) {
  
  source_set("common") {