diff options
Diffstat (limited to 'skia/ext/skia_utils_mac.mm')
-rw-r--r-- | skia/ext/skia_utils_mac.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/skia/ext/skia_utils_mac.mm b/skia/ext/skia_utils_mac.mm index 5da38df..07d9f0c 100644 --- a/skia/ext/skia_utils_mac.mm +++ b/skia/ext/skia_utils_mac.mm @@ -84,7 +84,8 @@ CGColorRef SkColorToCGColorRef(SkColor color) { } SkBitmap CGImageToSkBitmap(CGImageRef image) { - DCHECK(image != NULL); + if (!image) + return SkBitmap(); int width = CGImageGetWidth(image); int height = CGImageGetHeight(image); |