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

Side by Side Diff: skia/config/SkUserConfig.h

Issue 165223: Enable skia asserts. They were disabled some time ago due to... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | skia/ext/SkFontHost_fontconfig.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 (C) 2006 The Android Open Source Project 2 * Copyright (C) 2006 The Android Open Source Project
3 * 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License. 5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at 6 * You may obtain a copy of the License at
7 * 7 *
8 * http://www.apache.org/licenses/LICENSE-2.0 8 * http://www.apache.org/licenses/LICENSE-2.0
9 * 9 *
10 * Unless required by applicable law or agreed to in writing, software 10 * Unless required by applicable law or agreed to in writing, software
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 #define SK_G32_SHIFT 8 196 #define SK_G32_SHIFT 8
197 #define SK_B32_SHIFT 0 197 #define SK_B32_SHIFT 0
198 198
199 #endif 199 #endif
200 200
201 // The default crash macro writes to badbeef which can cause some strange 201 // The default crash macro writes to badbeef which can cause some strange
202 // problems. Instead, pipe this through to the logging function as a fatal 202 // problems. Instead, pipe this through to the logging function as a fatal
203 // assertion. 203 // assertion.
204 #define SK_CRASH() SkDebugf_FileLine(__FILE__, __LINE__, true, "SK_CRASH") 204 #define SK_CRASH() SkDebugf_FileLine(__FILE__, __LINE__, true, "SK_CRASH")
205 205
206 // TODO(brettw) bug 6373: Re-enable Skia assertions. This is blocked on fixing
207 // some of our transparency handling which generates purposely-invalid colors,
208 // in turn causing assertions.
209 //#ifndef NDEBUG
210 // #define SK_DEBUG
211 // #undef SK_RELEASE
212 #undef SK_SUPPORT_UNITTEST // This is only necessary in debug mode since
213 // we've disabled assertions. When we re-enable
214 // them, this line can be removed.
215 //#else
216 #define SK_RELEASE
217 #undef SK_DEBUG
218 //#endif
219
220 // For now (and to avoid rebaselining 1700+ tests), we'll use the old version 206 // For now (and to avoid rebaselining 1700+ tests), we'll use the old version
221 // of SkAlpha255To256. 207 // of SkAlpha255To256.
222 #define SK_USE_OLD_255_TO_256 208 #define SK_USE_OLD_255_TO_256
223 209
224 // ===== End Chrome-specific definitions ===== 210 // ===== End Chrome-specific definitions =====
225 211
226 #endif 212 #endif
OLDNEW
« no previous file with comments | « no previous file | skia/ext/SkFontHost_fontconfig.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698