OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 // IWYU pragma: private, include "SkTypes.h" | 8 // IWYU pragma: private, include "SkTypes.h" |
9 | 9 |
10 #ifndef SkPreConfig_DEFINED | 10 #ifndef SkPreConfig_DEFINED |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 #define SK_ARM_HAS_NEON | 203 #define SK_ARM_HAS_NEON |
204 #endif | 204 #endif |
205 | 205 |
206 ////////////////////////////////////////////////////////////////////// | 206 ////////////////////////////////////////////////////////////////////// |
207 | 207 |
208 #if !defined(SKIA_IMPLEMENTATION) | 208 #if !defined(SKIA_IMPLEMENTATION) |
209 #define SKIA_IMPLEMENTATION 0 | 209 #define SKIA_IMPLEMENTATION 0 |
210 #endif | 210 #endif |
211 | 211 |
212 #if defined(SKIA_DLL) | 212 #if defined(SKIA_DLL) |
213 #if defined(WIN32) | 213 #if defined(SK_BUILD_FOR_WIN32) |
214 #if SKIA_IMPLEMENTATION | 214 #if SKIA_IMPLEMENTATION |
215 #define SK_API __declspec(dllexport) | 215 #define SK_API __declspec(dllexport) |
216 #else | 216 #else |
217 #define SK_API __declspec(dllimport) | 217 #define SK_API __declspec(dllimport) |
218 #endif | 218 #endif |
219 #else | 219 #else |
220 #define SK_API __attribute__((visibility("default"))) | 220 #define SK_API __attribute__((visibility("default"))) |
221 #endif | 221 #endif |
222 #else | 222 #else |
223 #define SK_API | 223 #define SK_API |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 * | 261 * |
262 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. | 262 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. |
263 */ | 263 */ |
264 #if SK_HAS_ATTRIBUTE(optimize) | 264 #if SK_HAS_ATTRIBUTE(optimize) |
265 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) | 265 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) |
266 #else | 266 #else |
267 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ | 267 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ |
268 #endif | 268 #endif |
269 | 269 |
270 #endif | 270 #endif |
OLD | NEW |