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

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

Issue 1242743004: De-templatize Sk4pxXfermode code a bit. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: really fix Created 5 years, 5 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 | « no previous file | src/core/Sk4pxXfermode.h » ('j') | 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 #ifndef SkPostConfig_DEFINED 8 #ifndef SkPostConfig_DEFINED
9 #define SkPostConfig_DEFINED 9 #define SkPostConfig_DEFINED
10 10
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 * SK_ALWAYS_INLINE void someMethod() { ... } // should always be inlined 290 * SK_ALWAYS_INLINE void someMethod() { ... } // should always be inlined
291 */ 291 */
292 #if !defined(SK_ALWAYS_INLINE) 292 #if !defined(SK_ALWAYS_INLINE)
293 # if defined(SK_BUILD_FOR_WIN) 293 # if defined(SK_BUILD_FOR_WIN)
294 # define SK_ALWAYS_INLINE __forceinline 294 # define SK_ALWAYS_INLINE __forceinline
295 # else 295 # else
296 # define SK_ALWAYS_INLINE SK_ATTRIBUTE(always_inline) inline 296 # define SK_ALWAYS_INLINE SK_ATTRIBUTE(always_inline) inline
297 # endif 297 # endif
298 #endif 298 #endif
299 299
300 #if defined(SK_BUILD_FOR_WIN)
301 #define SK_VECTORCALL __vectorcall
302 #elif defined(SK_CPU_ARM32)
303 #define SK_VECTORCALL __attribute__((pcs("aapcs-vfp")))
304 #else
305 #define SK_VECTORCALL
306 #endif
307
300 ////////////////////////////////////////////////////////////////////// 308 //////////////////////////////////////////////////////////////////////
301 309
302 #if defined(__clang__) || defined(__GNUC__) 310 #if defined(__clang__) || defined(__GNUC__)
303 # define SK_PREFETCH(ptr) __builtin_prefetch(ptr) 311 # define SK_PREFETCH(ptr) __builtin_prefetch(ptr)
304 # define SK_WRITE_PREFETCH(ptr) __builtin_prefetch(ptr, 1) 312 # define SK_WRITE_PREFETCH(ptr) __builtin_prefetch(ptr, 1)
305 #else 313 #else
306 # define SK_PREFETCH(ptr) 314 # define SK_PREFETCH(ptr)
307 # define SK_WRITE_PREFETCH(ptr) 315 # define SK_WRITE_PREFETCH(ptr)
308 #endif 316 #endif
309 317
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 # define SK_GAMMA_EXPONENT (2.2f) 361 # define SK_GAMMA_EXPONENT (2.2f)
354 #endif 362 #endif
355 363
356 ////////////////////////////////////////////////////////////////////// 364 //////////////////////////////////////////////////////////////////////
357 365
358 #ifndef GR_TEST_UTILS 366 #ifndef GR_TEST_UTILS
359 # define GR_TEST_UTILS 1 367 # define GR_TEST_UTILS 1
360 #endif 368 #endif
361 369
362 #endif // SkPostConfig_DEFINED 370 #endif // SkPostConfig_DEFINED
OLDNEW
« no previous file with comments | « no previous file | src/core/Sk4pxXfermode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698