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

Side by Side Diff: include/core/SkPreConfig.h

Issue 2189983002: Make both SK_API definition points identical and order independent. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: TODOne Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « include/c/sk_types.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 #if !defined(SK_ARM_HAS_NEON) && !defined(SK_BUILD_NO_OPTS) && (defined(__ARM_NE ON__) || defined(__ARM_NEON)) 202 #if !defined(SK_ARM_HAS_NEON) && !defined(SK_BUILD_NO_OPTS) && (defined(__ARM_NE ON__) || defined(__ARM_NEON))
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(SK_API)
213 #if defined(SK_BUILD_FOR_WIN32) 213 #if defined(SKIA_DLL)
214 #if SKIA_IMPLEMENTATION 214 #if defined(SK_BUILD_FOR_WIN32)
215 #define SK_API __declspec(dllexport) 215 #if SKIA_IMPLEMENTATION
216 #define SK_API __declspec(dllexport)
217 #else
218 #define SK_API __declspec(dllimport)
219 #endif
216 #else 220 #else
217 #define SK_API __declspec(dllimport) 221 #define SK_API __attribute__((visibility("default")))
218 #endif 222 #endif
219 #else 223 #else
220 #define SK_API __attribute__((visibility("default"))) 224 #define SK_API
221 #endif 225 #endif
222 #else
223 #define SK_API
224 #endif 226 #endif
225 227
226 ////////////////////////////////////////////////////////////////////// 228 //////////////////////////////////////////////////////////////////////
227 229
228 /** 230 /**
229 * Use SK_PURE_FUNC as an attribute to indicate that a function's 231 * Use SK_PURE_FUNC as an attribute to indicate that a function's
230 * return value only depends on the value of its parameters. This 232 * return value only depends on the value of its parameters. This
231 * can help the compiler optimize out successive calls. 233 * can help the compiler optimize out successive calls.
232 * 234 *
233 * Usage: 235 * Usage:
(...skipping 27 matching lines...) Expand all
261 * 263 *
262 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. 264 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute.
263 */ 265 */
264 #if SK_HAS_ATTRIBUTE(optimize) 266 #if SK_HAS_ATTRIBUTE(optimize)
265 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) 267 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1")))
266 #else 268 #else
267 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ 269 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */
268 #endif 270 #endif
269 271
270 #endif 272 #endif
OLDNEW
« no previous file with comments | « include/c/sk_types.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698