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

Unified Diff: skia/BUILD.gn

Issue 951673002: Revert "Pull chromium at 2c3ffb2355a27c32f45e508ef861416b820c823b" (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « services/surfaces/surfaces_scheduler.cc ('k') | skia/config/SkUserConfig.h » ('j') | 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 aede7dc1aca169f2908955fa6df509c2fe11c7a0..85ccce735a524d038fe4407d25d34ab3445db8e9 100644
--- a/skia/BUILD.gn
+++ b/skia/BUILD.gn
@@ -5,7 +5,7 @@
import("//build/config/features.gni")
import("//build/config/ui.gni")
import("//testing/test.gni")
-if (current_cpu == "arm") {
+if (cpu_arch == "arm") {
import("//build/config/arm.gni")
}
@@ -178,7 +178,7 @@ config("skia_library_config") {
defines += [ "SKIA_IMPLEMENTATION=1" ]
}
- if (current_cpu == "arm") {
+ if (cpu_arch == "arm") {
if (arm_use_neon) {
defines += [ "SK_ARM_HAS_NEON" ]
}
@@ -298,10 +298,7 @@ component("skia") {
sources += gypi_skia_utils.sources
sources += gypi_values.skia_library_sources
- # This and skia_opts are really the same conceptual target so share headers.
- allow_circular_includes_from = [ ":skia_opts" ]
-
- if (current_cpu == "arm") {
+ if (cpu_arch == "arm") {
sources += [
"//third_party/skia/src/core/SkUtilsArm.cpp",
"//third_party/skia/src/core/SkUtilsArm.h",
@@ -535,7 +532,7 @@ source_set("skia_opts") {
cflags = []
defines = []
- if (current_cpu == "x86" || current_cpu == "x64") {
+ if (cpu_arch == "x86" || cpu_arch == "x64") {
sources = gypi_skia_opts.sse2_sources + gypi_skia_opts.ssse3_sources +
gypi_skia_opts.sse41_sources +
[
@@ -546,7 +543,7 @@ source_set("skia_opts") {
if (is_linux || is_mac) {
cflags += [ "-msse4.1" ]
}
- } else if (current_cpu == "arm") {
+ } else if (cpu_arch == "arm") {
# The assembly uses the frame pointer register (r7 in Thumb/r11 in
# ARM), the compiler doesn't like that.
cflags += [ "-fomit-frame-pointer" ]
@@ -566,7 +563,7 @@ source_set("skia_opts") {
} else {
sources = gypi_skia_opts.none_sourcees
}
- } else if (current_cpu == "mipsel") {
+ } else if (cpu_arch == "mipsel") {
cflags += [ "-fomit-frame-pointer" ]
sources = gypi_skia_opts.none_sources
} else {
@@ -614,7 +611,6 @@ test("skia_unittests") {
":skia",
"//base",
"//base/test:run_all_unittests",
- "//cc:test_support", # TODO: Fix this test to not depend on cc.
"//testing/gtest",
"//ui/gfx",
"//ui/gfx/geometry",
« no previous file with comments | « services/surfaces/surfaces_scheduler.cc ('k') | skia/config/SkUserConfig.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698