Commit 637c0b13 authored by mtklein's avatar mtklein Committed by Commit bot

Skia: plug ARMv8 CRC32 opts into Chrome.

BUG=

Review-Url: https://codereview.chromium.org/2260073005
Cr-Commit-Position: refs/heads/master@{#413447}
parent fdcb4e33
...@@ -545,6 +545,19 @@ component("skia") { ...@@ -545,6 +545,19 @@ component("skia") {
# Separated out so it can be compiled with different flags for SSE. # Separated out so it can be compiled with different flags for SSE.
if (!skia_build_no_opts) { if (!skia_build_no_opts) {
if (current_cpu == "arm64") {
source_set("skia_opts_crc32") {
sources = gypi_skia_opts.crc32_sources
cflags = [ "-march=armv8-a+crc" ]
visibility = [ ":skia_opts" ]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [
":skia_config",
":skia_library_config",
"//build/config/compiler:no_chromium_code",
]
}
}
if (current_cpu == "x86" || current_cpu == "x64") { if (current_cpu == "x86" || current_cpu == "x64") {
source_set("skia_opts_sse3") { source_set("skia_opts_sse3") {
sources = gypi_skia_opts.ssse3_sources sources = gypi_skia_opts.ssse3_sources
...@@ -670,6 +683,7 @@ source_set("skia_opts") { ...@@ -670,6 +683,7 @@ source_set("skia_opts") {
} }
} else if (current_cpu == "arm64") { } else if (current_cpu == "arm64") {
sources = gypi_skia_opts.arm64_sources sources = gypi_skia_opts.arm64_sources
deps += [ ":skia_opts_crc32" ]
} else if (current_cpu == "mipsel") { } else if (current_cpu == "mipsel") {
cflags += [ "-fomit-frame-pointer" ] cflags += [ "-fomit-frame-pointer" ]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment