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

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

Issue 2161103002: Improve assert reporting. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address comments. Created 4 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 | include/core/SkTypes.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 // IWYU pragma: private, include "SkTypes.h" 8 // IWYU pragma: private, include "SkTypes.h"
9 9
10 #ifndef SkPostConfig_DEFINED 10 #ifndef SkPostConfig_DEFINED
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 #if defined(GOOGLE3) 127 #if defined(GOOGLE3)
128 void SkDebugfForDumpStackTrace(const char* data, void* unused); 128 void SkDebugfForDumpStackTrace(const char* data, void* unused);
129 void DumpStackTrace(int skip_count, void w(const char*, void*), void* arg); 129 void DumpStackTrace(int skip_count, void w(const char*, void*), void* arg);
130 # define SK_DUMP_GOOGLE3_STACK() DumpStackTrace(0, SkDebugfForDumpStackTrace, n ullptr) 130 # define SK_DUMP_GOOGLE3_STACK() DumpStackTrace(0, SkDebugfForDumpStackTrace, n ullptr)
131 #else 131 #else
132 # define SK_DUMP_GOOGLE3_STACK() 132 # define SK_DUMP_GOOGLE3_STACK()
133 #endif 133 #endif
134 134
135 #ifndef SK_ABORT 135 #ifndef SK_ABORT
136 # define SK_ABORT(msg) \ 136 # define SK_ABORT(message) \
137 do { \ 137 do { \
138 SkNO_RETURN_HINT(); \ 138 SkNO_RETURN_HINT(); \
139 SkDebugf("%s:%d: fatal error: \"%s\"\n", __FILE__, __LINE__, #msg); \ 139 SkDebugf("%s:%d: fatal error: \"%s\"\n", __FILE__, __LINE__, message); \
140 SK_DUMP_GOOGLE3_STACK(); \ 140 SK_DUMP_GOOGLE3_STACK(); \
141 sk_abort_no_print(); \ 141 sk_abort_no_print(); \
142 } while (false) 142 } while (false)
143 #endif 143 #endif
144 144
145 /** 145 /**
146 * We check to see if the SHIFT value has already been defined. 146 * We check to see if the SHIFT value has already been defined.
147 * if not, we define it ourself to some default values. We default to OpenGL 147 * if not, we define it ourself to some default values. We default to OpenGL
148 * order (in memory: r,g,b,a) 148 * order (in memory: r,g,b,a)
149 */ 149 */
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 342
343 #ifndef SK_HISTOGRAM_BOOLEAN 343 #ifndef SK_HISTOGRAM_BOOLEAN
344 # define SK_HISTOGRAM_BOOLEAN(name, value) 344 # define SK_HISTOGRAM_BOOLEAN(name, value)
345 #endif 345 #endif
346 346
347 #ifndef SK_HISTOGRAM_ENUMERATION 347 #ifndef SK_HISTOGRAM_ENUMERATION
348 # define SK_HISTOGRAM_ENUMERATION(name, value, boundary_value) 348 # define SK_HISTOGRAM_ENUMERATION(name, value, boundary_value)
349 #endif 349 #endif
350 350
351 #endif // SkPostConfig_DEFINED 351 #endif // SkPostConfig_DEFINED
OLDNEW
« no previous file with comments | « no previous file | include/core/SkTypes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698