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

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

Issue 57823003: Add SK_PREFETCH and use in SkBlurImageFilter. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: slimmer change Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/effects/SkBlurImageFilter.cpp » ('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 /* 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 SkPostConfig_DEFINED 10 #ifndef SkPostConfig_DEFINED
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 #define SK_UNUSED SK_ATTRIBUTE(unused) 374 #define SK_UNUSED SK_ATTRIBUTE(unused)
375 #endif 375 #endif
376 376
377 #if !defined(SK_ATTR_DEPRECATED) 377 #if !defined(SK_ATTR_DEPRECATED)
378 // we ignore msg for now... 378 // we ignore msg for now...
379 #define SK_ATTR_DEPRECATED(msg) //SK_ATTRIBUTE(deprecated) 379 #define SK_ATTR_DEPRECATED(msg) //SK_ATTRIBUTE(deprecated)
380 #endif 380 #endif
381 381
382 ////////////////////////////////////////////////////////////////////// 382 //////////////////////////////////////////////////////////////////////
383 383
384 #if defined(__clang__) || defined(__GNUC__)
Nico 2013/11/12 05:23:09 clang defines __GNUC__ too, no need to check for i
385 #define SK_PREFETCH(ptr) __builtin_prefetch(ptr)
386 #define SK_WRITE_PREFETCH(ptr) __builtin_prefetch(ptr, 1)
387 #else
388 #define SK_PREFETCH(ptr)
389 #define SK_WRITE_PREFETCH(ptr)
390 #endif
391
392 //////////////////////////////////////////////////////////////////////
384 #ifndef SK_PRINTF_LIKE 393 #ifndef SK_PRINTF_LIKE
385 #if defined(__clang__) || defined(__GNUC__) 394 #if defined(__clang__) || defined(__GNUC__)
386 #define SK_PRINTF_LIKE(A, B) __attribute__((format(printf, (A), (B)))) 395 #define SK_PRINTF_LIKE(A, B) __attribute__((format(printf, (A), (B))))
387 #else 396 #else
388 #define SK_PRINTF_LIKE(A, B) 397 #define SK_PRINTF_LIKE(A, B)
389 #endif 398 #endif
390 #endif 399 #endif
391 400
392 ////////////////////////////////////////////////////////////////////// 401 //////////////////////////////////////////////////////////////////////
393 402
394 #ifndef SK_SIZE_T_SPECIFIER 403 #ifndef SK_SIZE_T_SPECIFIER
395 #if defined(_MSC_VER) 404 #if defined(_MSC_VER)
396 #define SK_SIZE_T_SPECIFIER "%Iu" 405 #define SK_SIZE_T_SPECIFIER "%Iu"
397 #else 406 #else
398 #define SK_SIZE_T_SPECIFIER "%zu" 407 #define SK_SIZE_T_SPECIFIER "%zu"
399 #endif 408 #endif
400 #endif 409 #endif
401 410
402 ////////////////////////////////////////////////////////////////////// 411 //////////////////////////////////////////////////////////////////////
403 412
404 #ifndef SK_ALLOW_STATIC_GLOBAL_INITIALIZERS 413 #ifndef SK_ALLOW_STATIC_GLOBAL_INITIALIZERS
405 #define SK_ALLOW_STATIC_GLOBAL_INITIALIZERS 1 414 #define SK_ALLOW_STATIC_GLOBAL_INITIALIZERS 1
406 #endif 415 #endif
OLDNEW
« no previous file with comments | « no previous file | src/effects/SkBlurImageFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698