| 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(SK_API) | 212 #if !defined(SK_API) |
| 213 #if defined(SKIA_DLL) | 213 #if defined(SKIA_DLL) |
| 214 #if defined(SK_BUILD_FOR_WIN32) | 214 #if defined(_MSC_VER) |
| 215 #if SKIA_IMPLEMENTATION | 215 #if SKIA_IMPLEMENTATION |
| 216 #define SK_API __declspec(dllexport) | 216 #define SK_API __declspec(dllexport) |
| 217 #else | 217 #else |
| 218 #define SK_API __declspec(dllimport) | 218 #define SK_API __declspec(dllimport) |
| 219 #endif | 219 #endif |
| 220 #else | 220 #else |
| 221 #define SK_API __attribute__((visibility("default"))) | 221 #define SK_API __attribute__((visibility("default"))) |
| 222 #endif | 222 #endif |
| 223 #else | 223 #else |
| 224 #define SK_API | 224 #define SK_API |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 * | 263 * |
| 264 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. | 264 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. |
| 265 */ | 265 */ |
| 266 #if SK_HAS_ATTRIBUTE(optimize) | 266 #if SK_HAS_ATTRIBUTE(optimize) |
| 267 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) | 267 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) |
| 268 #else | 268 #else |
| 269 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ | 269 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ |
| 270 #endif | 270 #endif |
| 271 | 271 |
| 272 #endif | 272 #endif |
| OLD | NEW |