Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Unified Diff: skia/BUILD.gn

Issue 2260073005: Skia: plug ARMv8 CRC32 opts into Chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: : Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/BUILD.gn
diff --git a/skia/BUILD.gn b/skia/BUILD.gn
index c01713735b1e40bf4450140b5e81b03532f89879..741db02f83e729269eb37223522fe60ddfc5143d 100644
--- a/skia/BUILD.gn
+++ b/skia/BUILD.gn
@@ -545,6 +545,19 @@ component("skia") {
# Separated out so it can be compiled with different flags for SSE.
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") {
source_set("skia_opts_sse3") {
sources = gypi_skia_opts.ssse3_sources
@@ -670,6 +683,7 @@ source_set("skia_opts") {
}
} else if (current_cpu == "arm64") {
sources = gypi_skia_opts.arm64_sources
+ deps += [ ":skia_opts_crc32" ]
} else if (current_cpu == "mipsel") {
cflags += [ "-fomit-frame-pointer" ]
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698