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

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: Changed conditions 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..fb37e15b623736d3bbbdf5b586d0b4eb5e157e8f 100644
--- a/third_party/opus/opus.gyp
+++ b/third_party/opus/opus.gyp
@@ -5,10 +5,18 @@
{
'variables': {
'conditions': [
- ['OS=="android"', {
+ ['OS=="android" or chromeos==1', {
'use_opus_fixed_point%': 1,
Sergey Ulanov 2014/03/19 19:21:51 This will enable fixed-point math on Intel Chromeb
tlegrand1 2014/03/20 10:11:01 I wanted to preserve the previous setting for Andr
+ 'conditions': [
+ ['target_arch=="arm"', {
+ 'use_opus_arm_optimization%': 1,
+ }, {
+ 'use_opus_arm_optimization%': 0,
+ }],
+ ],
}, {
'use_opus_fixed_point%': 0,
+ 'use_opus_arm_optimization%': 0,
}],
],
},
@@ -65,9 +73,25 @@
'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',
+ 'OPUS_HAVE_RTCD',
+ ],
+ 'includes': [
+ 'opus_arm_srcs.gypi',
+ ],
+ }],
+ ],
}],
],
- }, # target opus
+ },
{
'target_name': 'opus_demo',
'type': 'executable',
@@ -95,6 +119,6 @@
'src/celt',
'src/silk',
],
- }, # target opus_demo
+ },
]
}
« 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