| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #ifndef SkPreConfig_DEFINED | 10 #ifndef SkPreConfig_DEFINED |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 #endif | 191 #endif |
| 192 #endif | 192 #endif |
| 193 #endif | 193 #endif |
| 194 | 194 |
| 195 // Disable ARM64 optimizations for iOS due to complications regarding gyp and iO
S. | 195 // Disable ARM64 optimizations for iOS due to complications regarding gyp and iO
S. |
| 196 #if defined(__aarch64__) && !defined(SK_BUILD_FOR_IOS) | 196 #if defined(__aarch64__) && !defined(SK_BUILD_FOR_IOS) |
| 197 #define SK_CPU_ARM64 | 197 #define SK_CPU_ARM64 |
| 198 #endif | 198 #endif |
| 199 | 199 |
| 200 // All 64-bit ARM chips have NEON. Many 32-bit ARM chips do too. | 200 // All 64-bit ARM chips have NEON. Many 32-bit ARM chips do too. |
| 201 #if !defined(SK_ARM_HAS_NEON) && (defined(SK_CPU_ARM64) || defined(__ARM_NEON__)
) | 201 // TODO: Why don't we want NEON on iOS? |
| 202 #if !defined(SK_ARM_HAS_NEON) && !defined(SK_BUILD_FOR_IOS) && \ |
| 203 (defined(SK_CPU_ARM64) || defined(__ARM_NEON__)) |
| 202 #define SK_ARM_HAS_NEON | 204 #define SK_ARM_HAS_NEON |
| 203 #endif | 205 #endif |
| 204 | 206 |
| 205 ////////////////////////////////////////////////////////////////////// | 207 ////////////////////////////////////////////////////////////////////// |
| 206 | 208 |
| 207 #if !defined(SKIA_IMPLEMENTATION) | 209 #if !defined(SKIA_IMPLEMENTATION) |
| 208 #define SKIA_IMPLEMENTATION 0 | 210 #define SKIA_IMPLEMENTATION 0 |
| 209 #endif | 211 #endif |
| 210 | 212 |
| 211 #if defined(SKIA_DLL) | 213 #if defined(SKIA_DLL) |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 * | 262 * |
| 261 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. | 263 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. |
| 262 */ | 264 */ |
| 263 #if SK_HAS_ATTRIBUTE(optimize) | 265 #if SK_HAS_ATTRIBUTE(optimize) |
| 264 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) | 266 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) |
| 265 #else | 267 #else |
| 266 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ | 268 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ |
| 267 #endif | 269 #endif |
| 268 | 270 |
| 269 #endif | 271 #endif |
| OLD | NEW |