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

Unified Diff: third_party/opus/opus.gyp

Issue 150103006: Enabling ARM optimizations for Opus on Android and ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renaming Created 6 years, 9 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 | third_party/opus/opus_srcs_arm.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/opus/opus.gyp
diff --git a/third_party/opus/opus.gyp b/third_party/opus/opus.gyp
index be0ae4e01efe77acc50a3ae8d6343e89849926c7..3d6347628df9be95bc0bf0768994097ee88453e1 100644
--- a/third_party/opus/opus.gyp
+++ b/third_party/opus/opus.gyp
@@ -5,10 +5,12 @@
{
'variables': {
'conditions': [
- ['OS=="android"', {
+ ['(OS=="android" or chromeos==1) and target_arch=="arm"', {
Ami GONE FROM CHROMIUM 2014/03/24 16:16:34 Why not OS=="ios" (which would also likely mean ta
'use_opus_fixed_point%': 1,
+ 'use_opus_arm_optimization%': 1,
}, {
'use_opus_fixed_point%': 0,
+ 'use_opus_arm_optimization%': 0,
}],
],
},
@@ -65,6 +67,22 @@
'sources/': [
['exclude', '/float/[^/]*_FLP.(h|c)$'],
],
+ 'conditions': [
+ ['use_opus_arm_optimization==1', {
+ 'defines': [
+ 'OPUS_ARM_ASM',
+ 'OPUS_ARM_INLINE_ASM',
+ 'OPUS_ARM_INLINE_EDSP',
+ 'OPUS_ARM_MAY_HAVE_EDSP',
+ 'OPUS_ARM_MAY_HAVE_MEDIA',
+ 'OPUS_ARM_MAY_HAVE_NEON',
Ami GONE FROM CHROMIUM 2014/03/24 16:16:34 Does the run-time check this turns into https://co
+ 'OPUS_HAVE_RTCD',
+ ],
+ 'includes': [
+ 'opus_srcs_arm.gypi',
+ ],
+ }],
+ ],
}],
],
}, # target opus
« no previous file with comments | « no previous file | third_party/opus/opus_srcs_arm.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698