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

Unified Diff: skia/include/corecg/SkTypes.h

Issue 100163: When skia ok's a NULL malloc, don't call __debugbreak. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « skia/corecg/SkMemory_stdlib.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/include/corecg/SkTypes.h
===================================================================
--- skia/include/corecg/SkTypes.h (revision 14854)
+++ skia/include/corecg/SkTypes.h (working copy)
@@ -65,6 +65,11 @@
*/
extern void sk_free(void*);
+/** Returns whether sk_malloc() will currently throw. Only false during
+ a call to sk_malloc_flags() with SK_MALLOC_THROW not set. This is
+ useful to mallocs that would otherwise abort on NULL themselves.
+ false indicates that skia will safely handle NULL checking. **/
+extern bool sk_malloc_will_throw();
///////////////////////////////////////////////////////////////////////
#define SK_INIT_TO_AVOID_WARNING = 0
« no previous file with comments | « skia/corecg/SkMemory_stdlib.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698