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

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

Issue 1423013004: For BUILD.public, let SkPreConfig.h set SK_RELEASE based on NDEBUG. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 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
« no previous file with comments | « BUILD.public ('k') | tests/AtomicTest.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 * 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 SkPostConfig_DEFINED 10 #ifndef SkPostConfig_DEFINED
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 # ifndef SK_A32_SHIFT 141 # ifndef SK_A32_SHIFT
142 # define SK_A32_SHIFT 24 142 # define SK_A32_SHIFT 24
143 # define SK_R32_SHIFT 16 143 # define SK_R32_SHIFT 16
144 # define SK_G32_SHIFT 8 144 # define SK_G32_SHIFT 8
145 # define SK_B32_SHIFT 0 145 # define SK_B32_SHIFT 0
146 # endif 146 # endif
147 # 147 #
148 #endif 148 #endif
149 149
150 #ifndef SK_ALWAYSBREAK 150 #ifndef SK_ALWAYSBREAK
151 # ifdef SK_DEBUG 151 # if defined(GOOGLE3)
152 # include "base/examine_stack.h"
152 # define SK_ALWAYSBREAK(cond) do { \ 153 # define SK_ALWAYSBREAK(cond) do { \
153 if (cond) break; \ 154 if (cond) break; \
154 SkNO_RETURN_HINT(); \ 155 SkNO_RETURN_HINT(); \
156 SkDebugf("%s:%d: failed assertion \"%s\"\n", __FILE__, __LINE__, # cond); \
157 DumpStackTrace(0, DebugWriteToStderr, NULL); \
mtklein 2015/10/28 19:09:07 Think we can just forward-declare this instead of
158 SK_CRASH(); \
159 } while (false)
160 # elif defined(SK_DEBUG)
161 # define SK_ALWAYSBREAK(cond) do { \
162 if (cond) break; \
163 SkNO_RETURN_HINT(); \
155 SkDebugf("%s:%d: failed assertion \"%s\"\n", __FILE__, __LINE__, # cond); \ 164 SkDebugf("%s:%d: failed assertion \"%s\"\n", __FILE__, __LINE__, # cond); \
156 SK_CRASH(); \ 165 SK_CRASH(); \
157 } while (false) 166 } while (false)
158 # else 167 # else
159 # define SK_ALWAYSBREAK(cond) do { if (cond) break; SK_CRASH(); } while (fals e) 168 # define SK_ALWAYSBREAK(cond) do { if (cond) break; SK_CRASH(); } while (fals e)
160 # endif 169 # endif
161 #endif 170 #endif
162 171
163 /** 172 /**
164 * We check to see if the SHIFT value has already been defined. 173 * We check to see if the SHIFT value has already been defined.
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 # define SK_GAMMA_EXPONENT (2.2f) 361 # define SK_GAMMA_EXPONENT (2.2f)
353 #endif 362 #endif
354 363
355 ////////////////////////////////////////////////////////////////////// 364 //////////////////////////////////////////////////////////////////////
356 365
357 #ifndef GR_TEST_UTILS 366 #ifndef GR_TEST_UTILS
358 # define GR_TEST_UTILS 1 367 # define GR_TEST_UTILS 1
359 #endif 368 #endif
360 369
361 #endif // SkPostConfig_DEFINED 370 #endif // SkPostConfig_DEFINED
OLDNEW
« no previous file with comments | « BUILD.public ('k') | tests/AtomicTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698