| 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 #define SK_ARM_HAS_EDSP | 190 #define SK_ARM_HAS_EDSP |
| 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 #if !defined(SK_ARM_HAS_NEON) && defined(__ARM_NEON__) | |
| 201 #define SK_ARM_HAS_NEON | |
| 202 #endif | |
| 203 | |
| 204 ////////////////////////////////////////////////////////////////////// | 200 ////////////////////////////////////////////////////////////////////// |
| 205 | 201 |
| 206 #if !defined(SKIA_IMPLEMENTATION) | 202 #if !defined(SKIA_IMPLEMENTATION) |
| 207 #define SKIA_IMPLEMENTATION 0 | 203 #define SKIA_IMPLEMENTATION 0 |
| 208 #endif | 204 #endif |
| 209 | 205 |
| 210 #if defined(SKIA_DLL) | 206 #if defined(SKIA_DLL) |
| 211 #if defined(WIN32) | 207 #if defined(WIN32) |
| 212 #if SKIA_IMPLEMENTATION | 208 #if SKIA_IMPLEMENTATION |
| 213 #define SK_API __declspec(dllexport) | 209 #define SK_API __declspec(dllexport) |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 * | 255 * |
| 260 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. | 256 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. |
| 261 */ | 257 */ |
| 262 #if SK_HAS_ATTRIBUTE(optimize) | 258 #if SK_HAS_ATTRIBUTE(optimize) |
| 263 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) | 259 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) |
| 264 #else | 260 #else |
| 265 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ | 261 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ |
| 266 #endif | 262 #endif |
| 267 | 263 |
| 268 #endif | 264 #endif |
| OLD | NEW |