DescriptionThe malloc() in Chromium will intentionally trigger a
__debugbreak (crash) whenever a NULL malloc() occurs. This
is problematic in a number of places (eg., large <canvas>
tag), where skia would otherwise gracefully handle the
failure.
This patch implements a function to know when skia will safely
handle a NULL malloc(). In particular, when sk_malloc_flags()
is called SK_MALLOC_THROW not set.
Patch Set 1 #Patch Set 2 : 2nd version using separate implementation of SkMemory #
MessagesTotal messages: 3
|
|||||||||||||||||||