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

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

Issue 2204683005: Enable SK_DEBUG/SK_RELEASE to be defined in the user config. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Enable SK_DEBUG/SK_RELEASE to be defined in the user config. 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/core/SkPostConfig.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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 * the default (NDK-compliant) Android code. Therefore, when attempting to 45 * the default (NDK-compliant) Android code. Therefore, when attempting to
46 * include/exclude something from the framework variant check first that we are 46 * include/exclude something from the framework variant check first that we are
47 * building for Android then check the status of the framework define. 47 * building for Android then check the status of the framework define.
48 */ 48 */
49 #if defined(SK_BUILD_FOR_ANDROID_FRAMEWORK) && !defined(SK_BUILD_FOR_ANDROID) 49 #if defined(SK_BUILD_FOR_ANDROID_FRAMEWORK) && !defined(SK_BUILD_FOR_ANDROID)
50 #define SK_BUILD_FOR_ANDROID 50 #define SK_BUILD_FOR_ANDROID
51 #endif 51 #endif
52 52
53 ////////////////////////////////////////////////////////////////////// 53 //////////////////////////////////////////////////////////////////////
54 54
55 #if !defined(SK_DEBUG) && !defined(SK_RELEASE)
56 #ifdef NDEBUG
57 #define SK_RELEASE
58 #else
59 #define SK_DEBUG
60 #endif
61 #endif
62
63 #ifdef SK_BUILD_FOR_WIN32 55 #ifdef SK_BUILD_FOR_WIN32
64 #if !defined(SK_RESTRICT) 56 #if !defined(SK_RESTRICT)
65 #define SK_RESTRICT __restrict 57 #define SK_RESTRICT __restrict
66 #endif 58 #endif
67 #if !defined(SK_WARN_UNUSED_RESULT) 59 #if !defined(SK_WARN_UNUSED_RESULT)
68 #define SK_WARN_UNUSED_RESULT 60 #define SK_WARN_UNUSED_RESULT
69 #endif 61 #endif
70 #endif 62 #endif
71 63
72 //////////////////////////////////////////////////////////////////////
73
74 #if !defined(SK_RESTRICT) 64 #if !defined(SK_RESTRICT)
75 #define SK_RESTRICT __restrict__ 65 #define SK_RESTRICT __restrict__
76 #endif 66 #endif
77 67
78 #if !defined(SK_WARN_UNUSED_RESULT) 68 #if !defined(SK_WARN_UNUSED_RESULT)
79 #define SK_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) 69 #define SK_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
80 #endif 70 #endif
81 71
82 ////////////////////////////////////////////////////////////////////// 72 //////////////////////////////////////////////////////////////////////
83 73
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 * 253 *
264 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. 254 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute.
265 */ 255 */
266 #if SK_HAS_ATTRIBUTE(optimize) 256 #if SK_HAS_ATTRIBUTE(optimize)
267 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) 257 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1")))
268 #else 258 #else
269 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ 259 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */
270 #endif 260 #endif
271 261
272 #endif 262 #endif
OLDNEW
« no previous file with comments | « include/core/SkPostConfig.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698