Skip to content

Commit

Permalink
Update NEON compiler flags for Skia to use the SK_ prefix.
Browse files Browse the repository at this point in the history
The old defines will be left in place until the next Skia DEPS
roll. After that roll Skia will be switched to using the SK_
prefixed defines and the old reserved (i.e. __ARM*) defines can be
removed.

BUG=skia:2785

Review URL: https://codereview.chromium.org/430253002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286901 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
djsollen@google.com committed Jul 31, 2014
1 parent 81ff4ef commit 00e1d27
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 24 deletions.
4 changes: 2 additions & 2 deletions skia/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,10 @@ config("skia_library_config") {

if (cpu_arch == "arm") {
if (arm_use_neon) {
defines += [ "__ARM_HAVE_NEON" ]
defines += [ "SK_ARM_HAS_NEON", "__ARM_HAVE_NEON" ]
}
if (arm_optionally_use_neon) {
defines += [ "__ARM_HAVE_OPTIONAL_NEON_SUPPORT" ]
defines += [ "SK_ARM_HAS_OPTIONAL_NEON", "__ARM_HAVE_OPTIONAL_NEON_SUPPORT" ]
}
}

Expand Down
2 changes: 2 additions & 0 deletions skia/skia_common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,13 @@
# Neon support.
[ 'target_arch == "arm" and arm_version >= 7 and arm_neon == 1', {
'defines': [
'SK_ARM_HAS_NEON',
'__ARM_HAVE_NEON',
],
}],
[ 'target_arch == "arm" and arm_version >= 7 and arm_neon_optional == 1', {
'defines': [
'SK_ARM_HAS_OPTIONAL_NEON',
'__ARM_HAVE_OPTIONAL_NEON_SUPPORT',
],
}],
Expand Down
22 changes: 0 additions & 22 deletions skia/skia_library_opts.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,6 @@
}],
[ 'target_arch == "arm"', {
'conditions': [
[ 'arm_version >= 7 and arm_neon == 1', {
'defines': [
'__ARM_HAVE_NEON',
],
}],
[ 'arm_version >= 7 and arm_neon_optional == 1', {
'defines': [
'__ARM_HAVE_OPTIONAL_NEON_SUPPORT',
],
}],
[ 'arm_version >= 7 and (arm_neon == 1 or arm_neon_optional == 1)', {
'cflags': [
# The neon assembly contains conditional instructions which
Expand Down Expand Up @@ -332,18 +322,6 @@
'../third_party/skia/src/opts/memset16_neon.S',
'../third_party/skia/src/opts/memset32_neon.S',
],
'conditions': [
['arm_neon == 1', {
'defines': [
'__ARM_HAVE_NEON',
],
}],
['arm_neon_optional == 1', {
'defines': [
'__ARM_HAVE_OPTIONAL_NEON_SUPPORT',
],
}],
],
},
],
}],
Expand Down

0 comments on commit 00e1d27

Please sign in to comment.